aboutsummaryrefslogtreecommitdiffstats
path: root/packet-x11.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-04-11 09:38:03 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-04-11 09:38:03 +0000
commit821db4cef65aedad662e0760044d07ca6ff053c0 (patch)
tree3c50b706d19afcc06755df1e4463188e6b6f268d /packet-x11.c
parent1a2c28b7be2ceea1a160c22e96d454b48d6b043b (diff)
From Joerg Mayer: get rid of some unused arguments, and make some
routines not used outside the file in which they're defined static. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5144 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-x11.c')
-rw-r--r--packet-x11.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-x11.c b/packet-x11.c
index 5430a64884..dea349bf53 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.31 2002/04/05 20:04:52 guy Exp $
+ * $Id: packet-x11.c,v 1.32 2002/04/11 09:38:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -652,7 +652,7 @@ static struct maskStruct {
#define BITMASK8(name) { bitmask(tvb, t, hf_x11_##name##_mask, ett_x11_##name##_mask, 1); }
#define BITMASK16(name) { bitmask(tvb, t, hf_x11_##name##_mask, ett_x11_##name##_mask, 2); }
#define BITMASK32(name) { bitmask(tvb, t, hf_x11_##name##_mask, ett_x11_##name##_mask, 4); }
-#define BOOL(name) (add_boolean(tvb, t, #name, hf_x11_##name))
+#define BOOL(name) (add_boolean(tvb, t, hf_x11_##name))
#define BUTTON(name) { FIELD8(name); }
#define CARD8(name) { FIELD8(name); }
#define CARD16(name) (FIELD16(name))
@@ -742,8 +742,7 @@ static void bitmask(tvbuff_t *tvb, proto_tree *t, int hf, int ett, int size)
cur_offset += size;
}
-static guint32 add_boolean(tvbuff_t *tvb, proto_tree *t,
- const char *nameAsChar, int hf)
+static guint32 add_boolean(tvbuff_t *tvb, proto_tree *t, int hf)
{
guint32 v = VALUE8(tvb, cur_offset);
proto_tree_add_boolean(t, hf, tvb, cur_offset, 1, v);