diff options
author | jca <jca@openbsd.org> | 2013-12-05 14:20:53 +0000 |
---|---|---|
committer | jca <jca@openbsd.org> | 2013-12-05 14:20:53 +0000 |
commit | 573fd9e7ff8b16b8dfccea461b2aa3f146ba281e (patch) | |
tree | 577afdb7743dbf56b34e815302bd53c1495d5d7d /usr.sbin/ypserv | |
parent | In split_address(), make 'i' a size_t. ok millert@ (diff) | |
download | wireguard-openbsd-573fd9e7ff8b16b8dfccea461b2aa3f146ba281e.tar.xz wireguard-openbsd-573fd9e7ff8b16b8dfccea461b2aa3f146ba281e.zip |
Provide a prototype for ngstore() and include <unistd.h> for getopt().
ok millert@
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r-- | usr.sbin/ypserv/revnetgroup/hash.h | 3 | ||||
-rw-r--r-- | usr.sbin/ypserv/revnetgroup/revnetgroup.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ypserv/revnetgroup/hash.h b/usr.sbin/ypserv/revnetgroup/hash.h index 264a3fd2ca4..edfadffec48 100644 --- a/usr.sbin/ypserv/revnetgroup/hash.h +++ b/usr.sbin/ypserv/revnetgroup/hash.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hash.h,v 1.2 2002/02/16 21:28:11 millert Exp $ */ +/* $OpenBSD: hash.h,v 1.3 2013/12/05 14:20:53 jca Exp $ */ /* * Copyright (c) 1995 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -62,6 +62,7 @@ struct group_entry { extern void store( struct group_entry ** , char *, char * ); extern void mstore( struct member_entry ** , char *, char *, char * ); +extern void ngstore( struct group_entry **, char *, char * ); extern char *lookup( struct group_entry **, char * ); extern void __endnetgrent( void ); extern void __setnetgrent( char * ); diff --git a/usr.sbin/ypserv/revnetgroup/revnetgroup.c b/usr.sbin/ypserv/revnetgroup/revnetgroup.c index e7b64d0e1db..4db19940c70 100644 --- a/usr.sbin/ypserv/revnetgroup/revnetgroup.c +++ b/usr.sbin/ypserv/revnetgroup/revnetgroup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: revnetgroup.c,v 1.10 2011/04/06 11:36:26 miod Exp $ */ +/* $OpenBSD: revnetgroup.c,v 1.11 2013/12/05 14:20:53 jca Exp $ */ /* * Copyright (c) 1995 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -42,6 +42,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include <util.h> #include <errno.h> #include <err.h> |