diff options
Diffstat (limited to '')
-rw-r--r-- | wiretap/introspection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/introspection.c b/wiretap/introspection.c index 032eee8e..44a342f9 100644 --- a/wiretap/introspection.c +++ b/wiretap/introspection.c @@ -11,6 +11,7 @@ #include "introspection.h" #include <string.h> #include <stdlib.h> +#include <wsutil/array.h> #include "introspection-enums.c" @@ -22,7 +23,7 @@ const ws_enum_t *wtap_inspect_enums(void) size_t wtap_inspect_enums_count(void) { /* Exclude null terminator */ - return sizeof(all_enums)/sizeof(ws_enum_t) - 1; + return array_length(all_enums) - 1; } const ws_enum_t *wtap_inspect_enums_bsearch(const char *needle) |