diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-11 09:38:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-11 09:38:03 +0000 |
commit | 5cf5c87abc8075d1527dbbebb0fae85ee7e3e5c9 (patch) | |
tree | 3c50b706d19afcc06755df1e4463188e6b6f268d /packet-x11.c | |
parent | 665fecd4132bd18599566fa8be9810900cf9d55a (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.
svn path=/trunk/; revision=5144
Diffstat (limited to 'packet-x11.c')
-rw-r--r-- | packet-x11.c | 7 |
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); |