diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-23 23:03:09 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-01 08:55:30 -0700 |
commit | ea921932dae7049b231bead7f8f3f088d7beaf9e (patch) | |
tree | 9b05820f2cb7df67f4c6c0392fbc0e7b24609994 /Xtranssock.c | |
parent | c1968d10f97d62ac05d698822c2688151f70a9eb (diff) |
Fix unused variable warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'Xtranssock.c')
-rw-r--r-- | Xtranssock.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Xtranssock.c b/Xtranssock.c index 27a939d..c2d69e6 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -1419,15 +1419,16 @@ TRANS(SocketINETConnect) (XtransConnInfo ciptr, char *host, char *port) struct addrinfo hints; char ntopbuf[INET6_ADDRSTRLEN]; int resetonce = 0; -#endif +#else struct sockaddr_in sockname; + struct hostent *hostp; + struct servent *servp; + unsigned long tmpaddr; +#endif #ifdef XTHREADS_NEEDS_BYNAMEPARAMS _Xgethostbynameparams hparams; _Xgetservbynameparams sparams; #endif - struct hostent *hostp; - struct servent *servp; - unsigned long tmpaddr; #ifdef X11_t char portbuf[PORTBUFSIZE]; #endif |