summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2010-04-30 18:49:18 +0100
committerArnaud Fontaine <arnau@debian.org>2010-04-30 18:49:18 +0100
commit5e86cb05666c448de2f61c23ae94e94ef4b38d64 (patch)
tree3523314489d3c81006936eec0d6cebf8e65c6b98
parenta546d00091de0ab16374dec55e8e2fa87d6bbebf (diff)
Fix GCC error on undeclared variable when not using abstract socket
This is a regression found by tinderbox in previous commit: xcb_util.c: In function '_xcb_open': xcb_util.c:213: error: 'fd' undeclared (first use in this function)
-rw-r--r--src/xcb_util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/xcb_util.c b/src/xcb_util.c
index cc4e24a..3516186 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -140,9 +140,7 @@ static int _xcb_open_abstract(char *protocol, const char *file, size_t filelen);
static int _xcb_open(char *host, char *protocol, const int display)
{
-#ifdef HAVE_ABSTRACT_SOCKETS
int fd;
-#endif
static const char unix_base[] = "/tmp/.X11-unix/X";
const char *base = unix_base;
size_t filelen;