svn commit: r230361 - head/usr.sbin/bootparamd/callbootd
Eitan Adler
eadler at FreeBSD.org
Fri Jan 20 01:39:26 UTC 2012
Author: eadler
Date: Fri Jan 20 01:39:26 2012
New Revision: 230361
URL: http://svn.freebsd.org/changeset/base/230361
Log:
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
Modified:
head/usr.sbin/bootparamd/callbootd/callbootd.c
Modified: head/usr.sbin/bootparamd/callbootd/callbootd.c
==============================================================================
--- head/usr.sbin/bootparamd/callbootd/callbootd.c Fri Jan 20 01:39:16 2012 (r230360)
+++ head/usr.sbin/bootparamd/callbootd/callbootd.c Fri Jan 20 01:39:26 2012 (r230361)
@@ -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,
More information about the svn-src-head
mailing list