Deleted Added
full compact
yp_dblookup.c (50479) yp_dblookup.c (60833)
1/*
2 * Copyright (c) 1995
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#ifndef lint
34static const char rcsid[] =
1/*
2 * Copyright (c) 1995
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

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

27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#ifndef lint
34static const char rcsid[] =
35 "$FreeBSD: head/usr.sbin/ypserv/yp_dblookup.c 50479 1999-08-28 01:35:59Z peter $";
35 "$FreeBSD: head/usr.sbin/ypserv/yp_dblookup.c 60833 2000-05-23 20:41:01Z jake $";
36#endif /* not lint */
37
38#include <db.h>
39#include <errno.h>
40#include <fcntl.h>
41#include <limits.h>
42#include <paths.h>
43#include <stdio.h>

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

74struct dbent {
75 DB *dbp;
76 char *name;
77 char *key;
78 int size;
79 int flags;
80};
81
36#endif /* not lint */
37
38#include <db.h>
39#include <errno.h>
40#include <fcntl.h>
41#include <limits.h>
42#include <paths.h>
43#include <stdio.h>

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

74struct dbent {
75 DB *dbp;
76 char *name;
77 char *key;
78 int size;
79 int flags;
80};
81
82static CIRCLEQ_HEAD(circlehead, circleq_entry) qhead;
82static CIRCLEQ_HEAD(circlehead, struct circleq_entry) qhead;
83
84struct circleq_entry {
85 struct dbent *dbptr;
83
84struct circleq_entry {
85 struct dbent *dbptr;
86 CIRCLEQ_ENTRY(circleq_entry) links;
86 CIRCLEQ_ENTRY(struct circleq_entry) links;
87};
88
89/*
90 * Initialize the circular queue.
91 */
92void yp_init_dbs()
93{
94 CIRCLEQ_INIT(&qhead);

--- 661 unchanged lines hidden ---
87};
88
89/*
90 * Initialize the circular queue.
91 */
92void yp_init_dbs()
93{
94 CIRCLEQ_INIT(&qhead);

--- 661 unchanged lines hidden ---