summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_simple.c
diff options
context:
space:
mode:
authorjraynard <jraynard@FreeBSD.org>1996-06-10 20:13:09 +0000
committerjraynard <jraynard@FreeBSD.org>1996-06-10 20:13:09 +0000
commit0e3efc7987c3d214da05c649e00c7f72620a96bd (patch)
tree3a4e1682ef16b142e099c2139c0dbb40e61347ee /lib/libc/rpc/svc_simple.c
parent68b3f1ce70e0dec9ed0b3454f40628b409196f2d (diff)
downloadFreeBSD-src-0e3efc7987c3d214da05c649e00c7f72620a96bd.zip
FreeBSD-src-0e3efc7987c3d214da05c649e00c7f72620a96bd.tar.gz
Code cleanup:
1. Added missing function prototypes. 2. Added missing function return types. 3. Added missing function argument types. 4. Added missing headers for system function prototypes. 5. Corrected format specifier in printf(). 6. Added extra parentheses around assignment used as truth value. 7. Added missing "default" cases in switch statements. 8. Added casts for function pointers. 9. Did *not* change int declarations of uid and gid to uid_t/gid_t because I don't know if that would affect the protocol. Put in explicit casts to int instead, to make things more obvious. 10. Moved declarations of variables that are only used if YP is defined inside the '#ifdef YP' conditionals.
Diffstat (limited to 'lib/libc/rpc/svc_simple.c')
-rw-r--r--lib/libc/rpc/svc_simple.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/rpc/svc_simple.c b/lib/libc/rpc/svc_simple.c
index 8bcc306..f18b417 100644
--- a/lib/libc/rpc/svc_simple.c
+++ b/lib/libc/rpc/svc_simple.c
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)svc_simple.c 1.18 87/08/11 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)svc_simple.c 2.2 88/08/01 4.0 RPCSRC";*/
-static char *rcsid = "$Id: svc_simple.c,v 1.2 1995/05/30 05:41:37 rgrimes Exp $";
+static char *rcsid = "$Id: svc_simple.c,v 1.3 1995/10/22 14:51:37 phk Exp $";
#endif
/*
@@ -47,6 +47,8 @@ static char *rcsid = "$Id: svc_simple.c,v 1.2 1995/05/30 05:41:37 rgrimes Exp $"
#include <sys/socket.h>
#include <netdb.h>
+bool_t pmap_unset(u_long, u_long);
+
static struct proglst {
char *(*p_progname)();
int p_prognum;
@@ -58,14 +60,15 @@ static void universal();
static SVCXPRT *transp;
struct proglst *pl;
-registerrpc(prognum, versnum, procnum, progname, inproc, outproc)
+int registerrpc(prognum, versnum, procnum, progname, inproc, outproc)
char *(*progname)();
+ int prognum, versnum, procnum;
xdrproc_t inproc, outproc;
{
if (procnum == NULLPROC) {
(void) fprintf(stderr,
- "can't reassign procedure number %d\n", NULLPROC);
+ "can't reassign procedure number %ld\n", NULLPROC);
return (-1);
}
if (transp == 0) {
OpenPOWER on IntegriCloud