Deleted Added
full compact
cachelib.c (184189) cachelib.c (194093)
1/*-
2 * Copyright (c) 2005 Michael Bushkov <bushman@rsu.ru>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2005 Michael Bushkov <bushman@rsu.ru>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/usr.sbin/nscd/cachelib.c 184189 2008-10-23 00:31:15Z delphij $");
29__FBSDID("$FreeBSD: head/usr.sbin/nscd/cachelib.c 194093 2009-06-13 00:43:56Z des $");
30
31#include <sys/time.h>
30
31#include <sys/time.h>
32
32#include <assert.h>
33#include <stdlib.h>
34#include <string.h>
33#include <assert.h>
34#include <stdlib.h>
35#include <string.h>
36
35#include "cachelib.h"
36#include "debug.h"
37
38#define INITIAL_ENTRIES_CAPACITY 32
39#define ENTRIES_CAPACITY_STEP 32
40
41#define STRING_SIMPLE_HASH_BODY(in_var, var, a, M) \
42 for ((var) = 0; *(in_var) != '\0'; ++(in_var)) \

--- 1176 unchanged lines hidden ---
37#include "cachelib.h"
38#include "debug.h"
39
40#define INITIAL_ENTRIES_CAPACITY 32
41#define ENTRIES_CAPACITY_STEP 32
42
43#define STRING_SIMPLE_HASH_BODY(in_var, var, a, M) \
44 for ((var) = 0; *(in_var) != '\0'; ++(in_var)) \

--- 1176 unchanged lines hidden ---