aboutsummaryrefslogtreecommitdiffstats
path: root/packet-x11.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-06-12 09:32:06 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-06-12 09:32:06 +0000
commit41721bceab6efef252fafb46e1fac8a2c00d0709 (patch)
tree3217e765160d1d3aa1ba0463a270cee7c6448303 /packet-x11.c
parent7d661916a4976237e899f2381a8d24e02c93dda6 (diff)
Don't include <X11/Xlib.h> to get AllPlanes defined; that causes the
build to fail on Win32 systems. It's defined (at least in the X11R6 on my FreeBSD 3.4 system) as "((unsigned long)~0L)", which presumably means "set all the bits" - which means "set all 32 bits" in the "value_string" table where it appears, as the value member of an entry in such a table is a "guint32", so just use 0xFFFFFFFF. Get rid of other unneeded #includes as well. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2061 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-x11.c')
-rw-r--r--packet-x11.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/packet-x11.c b/packet-x11.c
index 21a059814a..79e6c56274 100644
--- a/packet-x11.c
+++ b/packet-x11.c
@@ -2,7 +2,7 @@
* Routines for X11 dissection
* Copyright 2000, Christophe Tronche <ch.tronche@computer.org>
*
- * $Id: packet-x11.c,v 1.2 2000/06/12 08:28:13 guy Exp $
+ * $Id: packet-x11.c,v 1.3 2000/06/12 09:32:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -48,11 +48,8 @@
# include "config.h"
#endif
-#include <X11/Xlib.h>
#include <assert.h>
#include <ctype.h>
-#include <gdk/gdk.h>
-#include <gdk/gdkx.h>
#include <stdio.h>
#include <stdlib.h>
@@ -60,19 +57,6 @@
# include <sys/types.h>
#endif
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
-# include "snprintf.h"
-#endif
-
#include <string.h>
#include <glib.h>
#include "packet.h"
@@ -510,7 +494,7 @@ static const value_string ordering_vals[] = {
};
static const value_string plane_mask_vals[] = {
- { AllPlanes, "AllPlanes" },
+ { 0xFFFFFFFF, "AllPlanes" },
{ 0, NULL }
};