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
This commit is contained in:
Jakub Zawadzki 2013-12-08 12:34:56 +00:00
parent 6e928c41d9
commit 4af107edfe
1 changed files with 1 additions and 1 deletions

View File

@ -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 *