diff options
author | Roland McGrath <roland@hack.frob.com> | 2011-06-10 12:45:09 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2011-06-10 22:44:20 -0700 |
commit | 5615eaf26469f20c2d8c3be5770e12564a1edfff (patch) | |
tree | cf9eb7a5797cd7c9dd4680b0463859dcd8376328 /sunrpc | |
parent | b68e08db76547937ea6e1902e87a5ea98c906f0c (diff) | |
download | glibc-5615eaf26469f20c2d8c3be5770e12564a1edfff.zip glibc-5615eaf26469f20c2d8c3be5770e12564a1edfff.tar.gz glibc-5615eaf26469f20c2d8c3be5770e12564a1edfff.tar.bz2 |
Quash some new warnings from GCC 4.6.
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/clnt_udp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sunrpc/clnt_udp.c b/sunrpc/clnt_udp.c index 7aa86a6..83fdd8e 100644 --- a/sunrpc/clnt_udp.c +++ b/sunrpc/clnt_udp.c @@ -172,8 +172,6 @@ __libc_clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, cu->cu_xdrpos = XDR_GETPOS (&(cu->cu_outxdrs)); if (*sockp < 0) { - int dontblock = 1; - #ifdef SOCK_NONBLOCK # ifndef __ASSUME_SOCK_CLOEXEC if (__have_sock_cloexec >= 0) @@ -212,8 +210,11 @@ __libc_clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, # ifdef SOCK_CLOEXEC if (__have_sock_cloexec < 0) # endif - /* the sockets rpc controls are non-blocking */ - (void) __ioctl (*sockp, FIONBIO, (char *) &dontblock); + { + /* the sockets rpc controls are non-blocking */ + int dontblock = 1; + (void) __ioctl (*sockp, FIONBIO, (char *) &dontblock); + } #endif #ifdef IP_RECVERR { |