diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-02-12 00:59:18 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-02-12 00:59:18 +0000 |
commit | 356b686774968d312476b66d0c1fb1f21c46305a (patch) | |
tree | 2f5aaf6e6add6d81e463d41609bd2f3cd5107d0a /libc/inet/rpc/svc_simple.c | |
parent | e57fc6bbb2e98f9ef3336db698dc7dd260dfc502 (diff) |
Clean up lots of warnings.
Diffstat (limited to 'libc/inet/rpc/svc_simple.c')
-rw-r--r-- | libc/inet/rpc/svc_simple.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libc/inet/rpc/svc_simple.c b/libc/inet/rpc/svc_simple.c index e6e9f8620..5d5c76ad4 100644 --- a/libc/inet/rpc/svc_simple.c +++ b/libc/inet/rpc/svc_simple.c @@ -53,14 +53,16 @@ static void universal(); static SVCXPRT *transp; struct proglst *pl; -registerrpc(prognum, versnum, procnum, progname, inproc, outproc) +extern bool_t pmap_unset(u_long program, u_long version); + +int registerrpc(prognum, versnum, procnum, progname, inproc, outproc) char *(*progname) (); xdrproc_t inproc, outproc; { if (procnum == NULLPROC) { (void) fprintf(stderr, - "can't reassign procedure number %d\n", NULLPROC); + "can't reassign procedure number %lu\n", NULLPROC); return (-1); } if (transp == 0) { @@ -106,7 +108,7 @@ SVCXPRT *transp; * enforce "procnum 0 is echo" convention */ if (rqstp->rq_proc == NULLPROC) { - if (svc_sendreply(transp, xdr_void, (char *) NULL) == FALSE) { + if (svc_sendreply(transp, (xdrproc_t) xdr_void, (char *) NULL) == FALSE) { (void) fprintf(stderr, "xxx\n"); exit(1); } @@ -123,7 +125,7 @@ SVCXPRT *transp; return; } outdata = (*(pl->p_progname)) (xdrbuf); - if (outdata == NULL && pl->p_outproc != xdr_void) + if (outdata == NULL && pl->p_outproc != (xdrproc_t) xdr_void) /* there was an error */ return; if (!svc_sendreply(transp, pl->p_outproc, outdata)) { |