diff options
Diffstat (limited to 'usr.sbin/rpc.umntall')
-rw-r--r-- | usr.sbin/rpc.umntall/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/rpc.umntall/rpc.umntall.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/rpc.umntall/Makefile b/usr.sbin/rpc.umntall/Makefile index 1ea7fe6..0a829c3 100644 --- a/usr.sbin/rpc.umntall/Makefile +++ b/usr.sbin/rpc.umntall/Makefile @@ -5,4 +5,6 @@ PROG= rpc.umntall MAN= rpc.umntall.8 SRCS= rpc.umntall.c mounttab.c +#WARNS?= 2 + .include <bsd.prog.mk> diff --git a/usr.sbin/rpc.umntall/rpc.umntall.c b/usr.sbin/rpc.umntall/rpc.umntall.c index 050affb..0ce1ce2 100644 --- a/usr.sbin/rpc.umntall/rpc.umntall.c +++ b/usr.sbin/rpc.umntall/rpc.umntall.c @@ -182,8 +182,9 @@ 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, xdr_void, (caddr_t)0, - xdr_void, (caddr_t)0, try); + clnt_stat = clnt_call(clp, RPCMNT_UMNTALL, + (xdrproc_t)xdr_void, (caddr_t)0, + (xdrproc_t)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 +209,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, xdr_dir, dirp, - xdr_void, (caddr_t)0, try); + clnt_stat = clnt_call(clp, RPCMNT_UMOUNT, (xdrproc_t)xdr_dir, dirp, + (xdrproc_t)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); |