aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-12-14 19:26:06 +0000
committerBill Meier <wmeier@newsguy.com>2013-12-14 19:26:06 +0000
commitdefd185efa17920498b9718ac258d3a8331fa009 (patch)
treea4fef80c57f52b561855f2d08ded943df0233973 /epan
parent02eea9378e364fc2bd69b79e9220f389e21c45ec (diff)
Rework code slightly to prevent VS Code Analysis warning:
C6326: Potential comparison of a constant with another constant svn path=/trunk/; revision=54107
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-nflog.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nflog.c b/epan/dissectors/packet-nflog.c
index b0dd581a36..1bdb6eefae 100644
--- a/epan/dissectors/packet-nflog.c
+++ b/epan/dissectors/packet-nflog.c
@@ -186,9 +186,11 @@ nflog_tvb_byte_order(tvbuff_t *tvb, int tlv_offset)
return ENC_LITTLE_ENDIAN;
case BYTE_ORDER_HOST:
- return (G_BYTE_ORDER == G_LITTLE_ENDIAN) ?
- ENC_LITTLE_ENDIAN :
- ENC_BIG_ENDIAN;
+#if (G_BYTE_ORDER == G_LITTLE_ENDIAN)
+ return ENC_LITTLE_ENDIAN;
+#else
+ return ENC_BIG_ENDIAN;
+#endif
}
if (nflog_tvb_test_order(tvb, tlv_offset, tvb_get_ntohs))