From 9386d0d604b43db6adc33e4d48dacd735ccff9fb Mon Sep 17 00:00:00 2001 From: eadler Date: Fri, 20 Jan 2012 01:39:26 +0000 Subject: 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 --- usr.sbin/bootparamd/callbootd/callbootd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/bootparamd/callbootd/callbootd.c b/usr.sbin/bootparamd/callbootd/callbootd.c index 4ec16df..a0a4ef6 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, -- cgit v1.1