aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-07-16 01:14:40 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-07-16 01:14:40 +0000
commite4bb3006675e70e4e35fe481c9dcb6c4994ab0eb (patch)
treee39a75e865550bb0d066b07f643d608bf91c69de
parent3e8b8f0b1a5aae310316102a8402ab46b220f2dc (diff)
A better method of avoiding the "ISO C restricts enumerator values to range of 'int'" warning.
svn path=/trunk/; revision=50649
-rw-r--r--epan/dissectors/packet-tds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c
index ab739c6a75..6e05a7b1a8 100644
--- a/epan/dissectors/packet-tds.c
+++ b/epan/dissectors/packet-tds.c
@@ -1865,7 +1865,9 @@ dissect_tds_type_info(tvbuff_t *tvb, guint *offset, packet_info *pinfo, proto_tr
static void
dissect_tds_type_varbyte(tvbuff_t *tvb, guint *offset, packet_info *pinfo, proto_tree *tree, int hf, guint8 data_type, gboolean plp)
{
- enum { GEN_NULL = 0x00U, CHARBIN_NULL = 0xFFFFU, CHARBIN_NULL32 = 0xFFFFFFFFU };
+#define GEN_NULL 0x00U
+#define CHARBIN_NULL 0xFFFFU
+#define CHARBIN_NULL32 0xFFFFFFFFU
guint32 length;
char *string_value;
proto_tree *sub_tree = NULL;