diff options
author | darkjames <darkjames@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-05-04 19:32:35 +0000 |
---|---|---|
committer | darkjames <darkjames@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-05-04 19:32:35 +0000 |
commit | 5414173033085da0af59fa880e8ce6eb49264dde (patch) | |
tree | 39b2385fade56bc7654f76763857670d84f2f727 /epan/dissectors/packet-tcp.c | |
parent | 733f1f5c0c5c17a857c5deea1f180f8ac0458bde (diff) |
Cleanup: replace sizeof(arr)/sizeof(arr[0]) with shorter array_length(arr)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36986 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-tcp.c')
-rw-r--r-- | epan/dissectors/packet-tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c index abd12a9dd2..58bbb5acd4 100644 --- a/epan/dissectors/packet-tcp.c +++ b/epan/dissectors/packet-tcp.c @@ -3377,7 +3377,7 @@ static const ip_tcp_opt tcpopts[] = { } }; -#define N_TCP_OPTS (sizeof tcpopts / sizeof tcpopts[0]) +#define N_TCP_OPTS array_length(tcpopts) /* Determine if there is a sub-dissector and call it; return TRUE if there was a sub-dissector, FALSE otherwise. |