From 4af107edfed1488c1fcc48e13bec6f8c15b4c3cc Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Sun, 8 Dec 2013 12:34:56 +0000 Subject: [PATCH] Make VALUE_STRING_EXT_INIT use G_N_ELEMENTS macro instead of array_length. array_length() requires including packet.h svn path=/trunk/; revision=53851 --- epan/value_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/value_string.h b/epan/value_string.h index 3735c0200f..d5326a2776 100644 --- a/epan/value_string.h +++ b/epan/value_string.h @@ -171,7 +171,7 @@ typedef struct _value_string_ext { WS_DLL_PUBLIC const value_string* _try_val_to_str_ext_init(const guint32 val, const value_string_ext *vse); -#define VALUE_STRING_EXT_INIT(x) { _try_val_to_str_ext_init, 0, array_length(x)-1, x, #x } +#define VALUE_STRING_EXT_INIT(x) { _try_val_to_str_ext_init, 0, G_N_ELEMENTS(x)-1, x, #x } WS_DLL_PUBLIC const value_string_ext *