aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
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))