diff options
author | des <des@FreeBSD.org> | 2002-04-28 15:18:50 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-28 15:18:50 +0000 |
commit | e48f76df853e520cafc8b0a6237838fa12f69ea3 (patch) | |
tree | d7c3c2d08e4ff1d59c15bcb1a7ee8e74f001cb1d /libexec/rpc.rusersd | |
parent | 905d923df1beb294d386944f9fb3085807aefa0e (diff) | |
download | FreeBSD-src-e48f76df853e520cafc8b0a6237838fa12f69ea3.zip FreeBSD-src-e48f76df853e520cafc8b0a6237838fa12f69ea3.tar.gz |
Spell void * as void * rather than caddr_t. This is complicated by the
fact that caddr_t is often misspelled as char *.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'libexec/rpc.rusersd')
-rw-r--r-- | libexec/rpc.rusersd/rusers_proc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libexec/rpc.rusersd/rusers_proc.c b/libexec/rpc.rusersd/rusers_proc.c index 69380c9..71ccb9e 100644 --- a/libexec/rpc.rusersd/rusers_proc.c +++ b/libexec/rpc.rusersd/rusers_proc.c @@ -322,7 +322,7 @@ rusers_service(struct svc_req *rqstp, SVCXPRT *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 RUSERSPROC_NUM: @@ -369,16 +369,17 @@ rusers_service(struct svc_req *rqstp, SVCXPRT *transp) svcerr_noproc(transp); goto leave; } - bzero((char *)&argument, sizeof(argument)); - if (!svc_getargs(transp, xdr_argument, (caddr_t)&argument)) { + bzero(&argument, sizeof(argument)); + if (!svc_getargs(transp, (xdrproc_t)xdr_argument, &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, &argument)) { syslog(LOG_ERR, "unable to free arguments"); exit(1); } |