summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.umntall/rpc.umntall.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-04-27 07:09:33 +0000
committerimp <imp@FreeBSD.org>2003-04-27 07:09:33 +0000
commite08337faaacba71f30f75874ecc7fc7b9964ca1c (patch)
tree9513b597981511d59a649217afe4935046908e52 /usr.sbin/rpc.umntall/rpc.umntall.c
parent804dea9906aaf4826322be8aecd63eae31b17fb8 (diff)
downloadFreeBSD-src-e08337faaacba71f30f75874ecc7fc7b9964ca1c.zip
FreeBSD-src-e08337faaacba71f30f75874ecc7fc7b9964ca1c.tar.gz
Fix warnings:
o Add break; to default: label o Cast args to clnt_call to be xdrproc_t type.
Diffstat (limited to 'usr.sbin/rpc.umntall/rpc.umntall.c')
-rw-r--r--usr.sbin/rpc.umntall/rpc.umntall.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/rpc.umntall/rpc.umntall.c b/usr.sbin/rpc.umntall/rpc.umntall.c
index 17a5d0a..71025a0 100644
--- a/usr.sbin/rpc.umntall/rpc.umntall.c
+++ b/usr.sbin/rpc.umntall/rpc.umntall.c
@@ -84,6 +84,7 @@ main(int argc, char **argv) {
case '?':
usage();
default:
+ break;
}
argc -= optind;
argv += optind;
@@ -181,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, 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);
@@ -207,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, 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