[PATCH:libxtrans 05/10] Fix unused variable warnings

Alan Coopersmith alan.coopersmith at oracle.com
Tue Sep 27 14:28:25 PDT 2011


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 Xtranslcl.c  |    1 -
 Xtranssock.c |    9 +++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Xtranslcl.c b/Xtranslcl.c
index 8be8a58..af935b0 100644
--- a/Xtranslcl.c
+++ b/Xtranslcl.c
@@ -840,7 +840,6 @@ static int
 TRANS(NAMEDResetListener) (XtransConnInfo ciptr)
 
 {
-  int status = TRANS_RESET_NOOP;
   struct sockaddr_un      *sockname=(struct sockaddr_un *) ciptr->addr;
   struct stat     statb;
 
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
-- 
1.7.3.2



More information about the xorg-devel mailing list