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-dns.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-dns.c')
-rw-r--r-- | epan/dissectors/packet-dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c index c5913a2e8e..3fb8249d5f 100644 --- a/epan/dissectors/packet-dns.c +++ b/epan/dissectors/packet-dns.c @@ -593,7 +593,7 @@ dns_type_description (guint type) if (short_name == NULL) { return ep_strdup_printf("Unknown (%u)", type); } - if (type < sizeof(type_names)/sizeof(type_names[0])) + if (type < array_length(type_names)) long_name = type_names[type]; else { /* special cases */ |