diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-04-04 05:36:16 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-04-04 05:36:16 +0000 |
commit | fd72f57342162b4d6d9fddb7dbb789e23e3edf80 (patch) | |
tree | a09863032a50b1e4a5a2e09112bd00a360d9aa08 /lib/libc/gen/getgrent.c | |
parent | d5e3b4577028238a0c0130fdb7cc0189a4d34067 (diff) | |
download | FreeBSD-src-fd72f57342162b4d6d9fddb7dbb789e23e3edf80.zip FreeBSD-src-fd72f57342162b4d6d9fddb7dbb789e23e3edf80.tar.gz |
getpwent.c: fix problem with emacs dumping core when NIS is enabled. Also
add #includes for YP headers when compiling with -DYP to avoid some implicit
declarations.
getgrent.c & getnetgrent.c: add some #includes to avoid implicit declarations
of YP functions.
Diffstat (limited to 'lib/libc/gen/getgrent.c')
-rw-r--r-- | lib/libc/gen/getgrent.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index dfcabb0..8c60361 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -46,9 +46,12 @@ static struct group _gr_group; static int _gr_stayopen; static int grscan(), start_gr(); #ifdef YP +#include <rpc/rpc.h> +#include <rpcsvc/yp_prot.h> +#include <rpcsvc/ypclnt.h> static int _gr_stepping_yp; static int _gr_yp_enabled; -static int _getypgroup(struct group *, const char *, const char *); +static int _getypgroup(struct group *, const char *, char *); static int _nextypgroup(struct group *); #endif @@ -316,7 +319,7 @@ _gr_breakout_yp(struct group *gr, char *result) static char *_gr_yp_domain; static int -_getypgroup(struct group *gr, const char *name, const char *map) +_getypgroup(struct group *gr, const char *name, char *map) { char *result, *s; static char resultbuf[1024]; |