diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2011-05-04 19:32:35 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2011-05-04 19:32:35 +0000 |
commit | 38c2f2a151ef28bc7a26f1e1848f9cec11d4c445 (patch) | |
tree | 39b2385fade56bc7654f76763857670d84f2f727 /epan/dissectors/packet-telnet.c | |
parent | 0f6d022e33dee3e208538148af2b456772155906 (diff) |
Cleanup: replace sizeof(arr)/sizeof(arr[0]) with shorter array_length(arr)
svn path=/trunk/; revision=36986
Diffstat (limited to 'epan/dissectors/packet-telnet.c')
-rw-r--r-- | epan/dissectors/packet-telnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-telnet.c b/epan/dissectors/packet-telnet.c index 3701dffeff..1c2ca377d8 100644 --- a/epan/dissectors/packet-telnet.c +++ b/epan/dissectors/packet-telnet.c @@ -1516,7 +1516,7 @@ static tn_opt options[] = { }; -#define NOPTIONS (sizeof options / sizeof options[0]) +#define NOPTIONS array_length(options) static int telnet_sub_option(packet_info *pinfo, proto_tree *telnet_tree, tvbuff_t *tvb, int start_offset) |