diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2016-04-23 14:11:52 +0200 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2016-04-23 12:12:37 +0000 |
commit | f5af43f7d26928af1ec2cc52a28eaa6fa5bf6eab (patch) | |
tree | d70b2ca744e727a653f4ae529736b52117560004 /epan | |
parent | 9fbd4e6fcd28bbc2ea2223b19c0072f6a83192bb (diff) |
iso14443: use the array_length() macro
Change-Id: Id4431885fb78d8d8679e98111d9f007491c3f13e
Reviewed-on: https://code.wireshark.org/review/15069
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-iso14443.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-iso14443.c b/epan/dissectors/packet-iso14443.c index 72dece7499..5dae60a8ed 100644 --- a/epan/dissectors/packet-iso14443.c +++ b/epan/dissectors/packet-iso14443.c @@ -115,8 +115,7 @@ static const value_string iso14443_short_frame[] = { static const guint16 code_to_len[] = { 16, 24, 32, 40, 48, 64, 96, 128, 256 }; -/* XXX - do we have a generic macro for this? */ -#define LEN_CODE_MAX (sizeof(code_to_len) / sizeof(code_to_len[0])) +#define LEN_CODE_MAX array_length(code_to_len) /* the bits in the ATS' TO byte indicating which other bytes are transmitted */ #define HAVE_TC1 0x40 |