summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/getrpcent.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-10-22 14:51:39 +0000
committerphk <phk@FreeBSD.org>1995-10-22 14:51:39 +0000
commit107ef321d3cc17d146d3ea2ef8e38b5964096061 (patch)
treeea1d3fd2095891edf59c3a99e95f068aa3dcb632 /lib/libc/rpc/getrpcent.c
parent073a1e809a6b1c9546fce476af76b5ab77e46ce6 (diff)
downloadFreeBSD-src-107ef321d3cc17d146d3ea2ef8e38b5964096061.zip
FreeBSD-src-107ef321d3cc17d146d3ea2ef8e38b5964096061.tar.gz
Well, cvs commit core'ed on me, I belive I have got all the locks out,
but a commit mail got lost, it's the same as for this commit: lib/libc/gen confstr.c crypt.c disklabel.c fstab.c getcap.c getgrent.c getgrouplist.c getpass.c getpwent.c initgroups.c nlist.c psignal.c pwcache.c setmode.c sleep.c sysconf.c sysctl.c syslog.c usleep.c lib/libc/locale none.c read_runemagi.c setlocale.c lib/libc/net gethostbydns.c getnetbydns.c getnetbynis.c lib/libc/nls msgcat.c lib/libc/quad Makefile.inc lib/libc/regex engine.c regcomp.c regerror.c Minor cleanup, mostly unused vars and missing #includes. Limit the number of quad functions we pull in for 'i386'. I still belive the quad stuff should go back into gcc. Add compile-time warnings about crypt functions.
Diffstat (limited to 'lib/libc/rpc/getrpcent.c')
-rw-r--r--lib/libc/rpc/getrpcent.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/rpc/getrpcent.c b/lib/libc/rpc/getrpcent.c
index f94fcff..e9b919c 100644
--- a/lib/libc/rpc/getrpcent.c
+++ b/lib/libc/rpc/getrpcent.c
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)getrpcent.c 1.14 91/03/11 Copyr 1984 Sun Micro";*/
-static char *rcsid = "$Id: getrpcent.c,v 1.1 1994/08/07 18:35:51 wollman Exp $";
+static char *rcsid = "$Id: getrpcent.c,v 1.2 1995/05/30 05:41:21 rgrimes Exp $";
#endif
/*
@@ -38,6 +38,7 @@ static char *rcsid = "$Id: getrpcent.c,v 1.1 1994/08/07 18:35:51 wollman Exp $";
*/
#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <rpc/rpc.h>
@@ -205,8 +206,8 @@ getrpcent()
int reason;
register struct rpcdata *d = _rpcdata();
#ifdef YP
- char *key = NULL, *val = NULL;
- int keylen, vallen;
+ char *val = NULL;
+ int vallen;
#endif
if (d == 0)
OpenPOWER on IntegriCloud