summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2003-02-27 13:40:01 +0000
committernectar <nectar@FreeBSD.org>2003-02-27 13:40:01 +0000
commit0d65b541d4b09e3c91112b5b2ffe0efa9a390a55 (patch)
tree205498ba7f9a56de737c44c088026af3e03556ca /lib/libc/rpc
parentae8811433e5eff867ac6b45eb3e972f8b0c6310c (diff)
downloadFreeBSD-src-0d65b541d4b09e3c91112b5b2ffe0efa9a390a55.zip
FreeBSD-src-0d65b541d4b09e3c91112b5b2ffe0efa9a390a55.tar.gz
Eliminate 19 warnings in libc (at level WARNS=2) of the
`implicit declaration of function' variety.
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/Makefile.inc1
-rw-r--r--lib/libc/rpc/getrpcent.c2
-rw-r--r--lib/libc/rpc/rpc_com.h5
-rw-r--r--lib/libc/rpc/svc_run.c1
4 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/rpc/Makefile.inc b/lib/libc/rpc/Makefile.inc
index c349d5a..2ea731a 100644
--- a/lib/libc/rpc/Makefile.inc
+++ b/lib/libc/rpc/Makefile.inc
@@ -30,6 +30,7 @@ SRCS+= rtime.c
SRCS+= crypt_clnt.c crypt_xdr.c crypt.h
CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
+CFLAGS+= -I${.CURDIR}/rpc
CLEANFILES+= crypt_clnt.c crypt_xdr.c crypt.h
diff --git a/lib/libc/rpc/getrpcent.c b/lib/libc/rpc/getrpcent.c
index 9e305d2..b20d80d 100644
--- a/lib/libc/rpc/getrpcent.c
+++ b/lib/libc/rpc/getrpcent.c
@@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$");
#include <rpcsvc/ypclnt.h>
#endif
#include "un-namespace.h"
+#include "libc_private.h"
/*
* Internet version.
@@ -80,7 +81,6 @@ static struct rpcent *interpret(char *val, size_t len);
#ifdef YP
static int __yp_nomap = 0;
-extern int _yp_check(char **);
#endif /* YP */
#define RPCDB "/etc/rpc"
diff --git a/lib/libc/rpc/rpc_com.h b/lib/libc/rpc/rpc_com.h
index 1f1fd9e..a7cfd97 100644
--- a/lib/libc/rpc/rpc_com.h
+++ b/lib/libc/rpc/rpc_com.h
@@ -84,6 +84,11 @@ bool_t __rpc_control(int,void *);
char *_get_next_token(char *, int);
+bool_t __svc_clean_idle(fd_set *, int, bool_t);
+bool_t __xdrrec_setnonblock(XDR *, int);
+bool_t __xdrrec_getrec(XDR *, enum xprt_stat *, bool_t);
+void __xprt_unregister_unlocked(SVCXPRT *);
+
SVCXPRT **__svc_xports;
int __svc_maxrec;
diff --git a/lib/libc/rpc/svc_run.c b/lib/libc/rpc/svc_run.c
index adacadb..8b65475 100644
--- a/lib/libc/rpc/svc_run.c
+++ b/lib/libc/rpc/svc_run.c
@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
#include "un-namespace.h"
#include <rpc/rpc.h>
+#include "rpc_com.h"
void
svc_run()
OpenPOWER on IntegriCloud