summaryrefslogtreecommitdiffstats
path: root/sys/nfs
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/nfs
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/nfs')
-rw-r--r--sys/nfs/bootp_subr.c6
-rw-r--r--sys/nfs/krpc_subr.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/nfs/bootp_subr.c b/sys/nfs/bootp_subr.c
index 1efca25..d91bf90 100644
--- a/sys/nfs/bootp_subr.c
+++ b/sys/nfs/bootp_subr.c
@@ -1,4 +1,4 @@
-/* $Id: bootp_subr.c,v 1.17 1998/12/04 22:54:54 archie Exp $ */
+/* $Id: bootp_subr.c,v 1.18 1998/12/07 21:58:43 archie Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@@ -282,7 +282,7 @@ bootpc_call(call,reply,procp)
sopt.sopt_val = &tv;
sopt.sopt_valsize = sizeof tv;
- if (error = sosetopt(so, &sopt))
+ if ((error = sosetopt(so, &sopt)) != 0)
goto out;
/*
@@ -292,7 +292,7 @@ bootpc_call(call,reply,procp)
sopt.sopt_val = &on;
sopt.sopt_valsize = sizeof on;
sopt.sopt_name = SO_BROADCAST;
- if (error = sosetopt(so, &sopt))
+ if ((error = sosetopt(so, &sopt)) != 0)
goto out;
/*
diff --git a/sys/nfs/krpc_subr.c b/sys/nfs/krpc_subr.c
index ad01edb..fc232b9 100644
--- a/sys/nfs/krpc_subr.c
+++ b/sys/nfs/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