summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2002-08-26 03:01:33 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2002-08-26 03:01:33 +0000
commitc6861e464bd059c61a947105686057ed88b4b040 (patch)
treeafce1f5968284f359ae252b988bce395f4cda11c
parent93801b58634ed1456320fbaf135d82010b3e4645 (diff)
minor cleanups, correct cast of a svc_getargs() arg; ok deraadt
-rw-r--r--usr.sbin/amd/rpcx/nfs_prot_svc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/amd/rpcx/nfs_prot_svc.c b/usr.sbin/amd/rpcx/nfs_prot_svc.c
index ff639db3152..17c2f7e275f 100644
--- a/usr.sbin/amd/rpcx/nfs_prot_svc.c
+++ b/usr.sbin/amd/rpcx/nfs_prot_svc.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)nfs_prot_svc.c 8.1 (Berkeley) 6/6/93
- * $Id: nfs_prot_svc.c,v 1.1 1995/10/18 08:47:23 deraadt Exp $
+ * $Id: nfs_prot_svc.c,v 1.2 2002/08/26 03:01:32 pvalchev Exp $
*
*/
@@ -181,15 +181,14 @@ SVCXPRT *transp;
return;
}
bzero((char *)&argument, sizeof(argument));
- if (!svc_getargs(transp, xdr_argument, (caddr_t) &argument)) {
+ if (!svc_getargs(transp, xdr_argument, (char *)&argument)) {
svcerr_decode(transp);
return;
}
result = (*local)(&argument, rqstp);
- if (result != NULL && !svc_sendreply(transp, xdr_result, result)) {
+ if (result != NULL && !svc_sendreply(transp, xdr_result, result))
svcerr_systemerr(transp);
- }
- if (!svc_freeargs(transp, xdr_argument, (caddr_t) &argument)) {
+ if (!svc_freeargs(transp, xdr_argument, (char *)&argument)) {
plog(XLOG_FATAL, "unable to free rpc arguments in nfs_program_1");
going_down(1);
}