[PATCH:xdm 1/5] Delete some unused variables

Alan Coopersmith alan.coopersmith at oracle.com
Sat Feb 19 22:36:37 PST 2011


auth.c: In function `DefineSelf':
auth.c:1045: warning: unused variable `n'
error.c: In function `Debug':
error.c:116: warning: unused variable `buf'

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 xdm/auth.c  |    1 -
 xdm/error.c |    2 --
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/xdm/auth.c b/xdm/auth.c
index ed3d891..63cd15e 100644
--- a/xdm/auth.c
+++ b/xdm/auth.c
@@ -1042,7 +1042,6 @@ DefineSelf (int fd, FILE *file, Xauth *auth)
     int 		family;
     register ifr_type  *ifr;
 #    ifdef USE_SIOCGLIFCONF
-    int			n;
     void *		bufptr = buf;
     size_t		buflen = sizeof(buf);
     struct lifconf	ifc;
diff --git a/xdm/error.c b/xdm/error.c
index d1bd16e..198053f 100644
--- a/xdm/error.c
+++ b/xdm/error.c
@@ -113,8 +113,6 @@ LogOutOfMem (const char * fmt, ...)
 void
 Debug (const char * fmt, ...)
 {
-    char buf[1024];
-
     if (debugLevel > 0)
     {
 	LogVarArgsWrite(fmt);
-- 
1.7.3.2



More information about the xorg-devel mailing list