summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/krpc_subr.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-27 23:45:44 +0000
committerdillon <dillon@FreeBSD.org>1999-01-27 23:45:44 +0000
commitf9a4729a9b5e134850841ee06d85b97bf66e749b (patch)
treee09f1712b3a4b92e9e060d46fecff5e8f5243354 /sys/nfsclient/krpc_subr.c
parentc590848cf5d691aba15e5a6579fb75c5fbefab93 (diff)
downloadFreeBSD-src-f9a4729a9b5e134850841ee06d85b97bf66e749b.zip
FreeBSD-src-f9a4729a9b5e134850841ee06d85b97bf66e749b.tar.gz
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile. This commit includes significant work to proper handle const arguments for the DDB symbol routines.
Diffstat (limited to 'sys/nfsclient/krpc_subr.c')
-rw-r--r--sys/nfsclient/krpc_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfsclient/krpc_subr.c b/sys/nfsclient/krpc_subr.c
index ad01edb..fc232b9 100644
--- a/sys/nfsclient/krpc_subr.c
+++ b/sys/nfsclient/krpc_subr.c
@@ -1,5 +1,5 @@
/* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */
-/* $Id: krpc_subr.c,v 1.10 1998/08/18 00:32:48 bde Exp $ */
+/* $Id: krpc_subr.c,v 1.11 1998/08/23 03:07:16 wollman Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@@ -230,7 +230,7 @@ krpc_call(sa, prog, vers, func, data, from_p, procp)
sopt.sopt_val = &tv;
sopt.sopt_valsize = sizeof tv;
- if (error = sosetopt(so, &sopt))
+ if ((error = sosetopt(so, &sopt)) != 0)
goto out;
/*
@@ -241,7 +241,7 @@ krpc_call(sa, prog, vers, func, data, from_p, procp)
sopt.sopt_name = SO_BROADCAST;
sopt.sopt_val = &on;
sopt.sopt_valsize = sizeof on;
- if (error = sosetopt(so, &sopt))
+ if ((error = sosetopt(so, &sopt)) != 0)
goto out;
}
OpenPOWER on IntegriCloud