summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.umntall
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 06:14:10 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 06:14:10 +0000
commit9a6ba4dbc2dd22e313c2d2555ebb74da5c2b290d (patch)
tree1d60fc584ef3aa91c84ec2a031a56a288780eda1 /usr.sbin/rpc.umntall
parent2472b3136c8144dbb0eae73e82143695a7dac0b8 (diff)
downloadFreeBSD-src-9a6ba4dbc2dd22e313c2d2555ebb74da5c2b290d.zip
FreeBSD-src-9a6ba4dbc2dd22e313c2d2555ebb74da5c2b290d.tar.gz
Deal with xdrproc_t casts. Make these compile cleanly with WARNS=2
(but I haven't turned it on)
Diffstat (limited to 'usr.sbin/rpc.umntall')
-rw-r--r--usr.sbin/rpc.umntall/Makefile2
-rw-r--r--usr.sbin/rpc.umntall/rpc.umntall.c9
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);
OpenPOWER on IntegriCloud