aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-01-20 01:39:26 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-01-20 01:39:26 +0000
commit30d3283b15c965aff5d553d817c99011900f036b (patch)
tree24bd69f6360b8cc149b495469acf8bcba69664ed
parentde879bdae9efb8ecf5f9ec8eaa2dba10375e7228 (diff)
downloadsrc-30d3283b15c965aff5d553d817c99011900f036b.tar.gz
src-30d3283b15c965aff5d553d817c99011900f036b.zip
Fix warning when compiling with gcc46:
error: variable 'clnt_stat' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
Notes
Notes: svn path=/head/; revision=230361
-rw-r--r--usr.sbin/bootparamd/callbootd/callbootd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bootparamd/callbootd/callbootd.c b/usr.sbin/bootparamd/callbootd/callbootd.c
index 4ec16df37428..a0a4ef62f824 100644
--- a/usr.sbin/bootparamd/callbootd/callbootd.c
+++ b/usr.sbin/bootparamd/callbootd/callbootd.c
@@ -81,7 +81,6 @@ char **argv;
long the_inet_addr;
CLIENT *clnt;
- enum clnt_stat clnt_stat;
stat_whoami_res.client_name = cln;
stat_whoami_res.domain_name = dmn;
@@ -117,7 +116,7 @@ char **argv;
} else
exit(0);
} else {
- clnt_stat=clnt_broadcast(BOOTPARAMPROG, BOOTPARAMVERS,
+ (void)clnt_broadcast(BOOTPARAMPROG, BOOTPARAMVERS,
BOOTPARAMPROC_WHOAMI,
(xdrproc_t)xdr_bp_whoami_arg,
(char *)&whoami_arg,
@@ -140,7 +139,7 @@ char **argv;
} else
exit(0);
} else {
- clnt_stat=clnt_broadcast(BOOTPARAMPROG, BOOTPARAMVERS,
+ (void)clnt_broadcast(BOOTPARAMPROG, BOOTPARAMVERS,
BOOTPARAMPROC_GETFILE,
(xdrproc_t)xdr_bp_getfile_arg,
(char *)&getfile_arg,