Re-arrange #if 0/#endif related to an hf[] entry so that checkhf doesn't complain.
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 28 Jan 2014 03:02:37 +0000 (03:02 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 28 Jan 2014 03:02:37 +0000 (03:02 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@54988 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-redbackli.c

index c3df5266f283b22b30a8bb4cf41c5b3a041339cb..aaa1f1408323cbe0ef68a8e3192685ee4ab33a75 100644 (file)
@@ -245,14 +245,17 @@ void proto_register_redbackli(void) {
                { &hf_redbackli_sessid,
                        { "Session Id", "redbackli.sessid", FT_UINT32, BASE_DEC, NULL, 0x0,
                        "Session Identifier", HFILL }},
-               { &hf_redbackli_dir,
 #if 0 /* XXX: If one goes by the heuristic then this field can be variable length ??
          In the absence of any documentation We'll assume that's the case
          (even though 'direction' sounds like a fixed length field */
+               { &hf_redbackli_dir,
                        { "Direction", "redbackli.dir", FT_UINT8, BASE_DEC, NULL, 0x0,
-#endif
+                       NULL, HFILL }},
+#else
+               { &hf_redbackli_dir,
                        { "Direction", "redbackli.dir", FT_BYTES, BASE_NONE, NULL, 0x0,
                        NULL, HFILL }},
+#endif
                { &hf_redbackli_label,
                        { "Label", "redbackli.label", FT_STRING, BASE_NONE, NULL, 0x0,
                        NULL, HFILL }},