rpc.rstatd(8): Silence warnings.
authorSascha Wildner <saw@online.de>
Sun, 29 Mar 2009 16:00:23 +0000 (18:00 +0200)
committerSascha Wildner <saw@online.de>
Sun, 29 Mar 2009 20:53:03 +0000 (22:53 +0200)
libexec/rpc.rstatd/rstat_proc.c

index 65d46c3..1ecfadd 100644 (file)
@@ -412,7 +412,7 @@ rstat_service(rqstp, transp)
 
        switch (rqstp->rq_proc) {
        case NULLPROC:
-               (void)svc_sendreply(transp, xdr_void, (char *)NULL);
+               (void)svc_sendreply(transp, (xdrproc_t)xdr_void, NULL);
                goto leave;
 
        case RSTATPROC_STATS:
@@ -460,15 +460,16 @@ rstat_service(rqstp, transp)
                goto leave;
        }
        bzero((char *)&argument, sizeof(argument));
-       if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) {
+       if (!svc_getargs(transp, (xdrproc_t)xdr_argument, (caddr_t)&argument)) {
                svcerr_decode(transp);
                goto leave;
        }
        result = (*local)(&argument, rqstp);
-       if (result != NULL && !svc_sendreply(transp, xdr_result, result)) {
+       if (result != NULL &&
+           !svc_sendreply(transp, (xdrproc_t)xdr_result, result)) {
                svcerr_systemerr(transp);
        }
-       if (!svc_freeargs(transp, xdr_argument, (caddr_t)&argument))
+       if (!svc_freeargs(transp, (xdrproc_t)xdr_argument, (caddr_t)&argument))
                errx(1, "unable to free arguments");
 leave:
         if (from_inetd)