summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-vnc.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-11-25 19:18:13 +0000
committerAnders Broman <a.broman58@gmail.com>2015-11-26 12:35:30 +0000
commitedb33883032ed8af3ca33df4250d7a12f2f48b53 (patch)
treee025a7c08806b5bf2d55b3aba2ca1d1fc4324390 /epan/dissectors/packet-vnc.c
parent3cb5d94018225a466154a5d22e31f67ce24312a0 (diff)
downloadwireshark-edb33883032ed8af3ca33df4250d7a12f2f48b53.tar.gz
Fix ISO C restricts enumerator values to range of 'int' [-Wpedantic]
Change-Id: I0609d1920038feb47eae9cef9bce2ee80f9720b7 Reviewed-on: https://code.wireshark.org/review/12160 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-vnc.c')
-rw-r--r--epan/dissectors/packet-vnc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/dissectors/packet-vnc.c b/epan/dissectors/packet-vnc.c
index 5208614f19..7dafb4eb9f 100644
--- a/epan/dissectors/packet-vnc.c
+++ b/epan/dissectors/packet-vnc.c
@@ -456,12 +456,10 @@ typedef enum {
VNC_SESSION_STATE_NORMAL_TRAFFIC
} vnc_session_state_e;
-typedef enum {
- VNC_FENCE_BLOCK_BEFORE = 0x00000001,
- VNC_FENCE_BLOCK_AFTER = 0x00000002,
- VNC_FENCE_SYNC_NEXT = 0x00000004,
- VNC_FENCE_REQUEST = 0x80000000
-} vnc_fence_flags_e;
+#define VNC_FENCE_BLOCK_BEFORE 0x00000001
+#define VNC_FENCE_BLOCK_AFTER 0x00000002
+#define VNC_FENCE_SYNC_NEXT 0x00000004
+#define VNC_FENCE_REQUEST 0x80000000
/* This structure will be tied to each conversation. */
typedef struct {