From 675502b9ddaf20c3bfc3fbc623278e2a35b37c3e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 27 Apr 2003 13:32:21 +0000 Subject: [PATCH] Back out the casts that rid us of warnings, but paper over the broken by design xdr routines. And I'm not going to bite off fixing xdr. --- usr.sbin/rpc.umntall/rpc.umntall.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/rpc.umntall/rpc.umntall.c b/usr.sbin/rpc.umntall/rpc.umntall.c index 71025a08159f..050affbed019 100644 --- a/usr.sbin/rpc.umntall/rpc.umntall.c +++ b/usr.sbin/rpc.umntall/rpc.umntall.c @@ -182,8 +182,8 @@ do_umntall(char *hostname) { clp->cl_auth = authunix_create_default(); try.tv_sec = 3; try.tv_usec = 0; - clnt_stat = clnt_call(clp, RPCMNT_UMNTALL, (xdrproc_t)xdr_void, - (caddr_t)0, (xdrproc_t)xdr_void, (caddr_t)0, try); + clnt_stat = clnt_call(clp, RPCMNT_UMNTALL, xdr_void, (caddr_t)0, + xdr_void, (caddr_t)0, try); if (clnt_stat != RPC_SUCCESS) warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMNTALL")); auth_destroy(clp->cl_auth); @@ -208,8 +208,8 @@ do_umount(char *hostname, char *dirp) { clp->cl_auth = authsys_create_default(); try.tv_sec = 3; try.tv_usec = 0; - clnt_stat = clnt_call(clp, RPCMNT_UMOUNT, (xdrproc_t)xdr_dir, dirp, - (xdrproc_t)xdr_void, (caddr_t)0, try); + clnt_stat = clnt_call(clp, RPCMNT_UMOUNT, xdr_dir, dirp, + xdr_void, (caddr_t)0, try); if (clnt_stat != RPC_SUCCESS) warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMOUNT")); auth_destroy(clp->cl_auth);