From b42dc43e288b33cb0ba467fccbe50d1de8eef878 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 16 Dec 2016 14:16:53 +0100 Subject: use new OSMO_VALUE_STRING libosmocore change-id I857af45ae602bb9a647ba26cf8b0d1b23403b54c adds OSMO_VALUE_STRING to compose value_string arrays with the exact enum names as entries. Use instead of identical local macros in two places. Change-Id: I1b44d2a3f293785a01d6a587c78f9e0cbeec70c3 --- openbsc/src/libiu/iu.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'openbsc/src/libiu') diff --git a/openbsc/src/libiu/iu.c b/openbsc/src/libiu/iu.c index c15c6c5f3..8ba6fa49d 100644 --- a/openbsc/src/libiu/iu.c +++ b/openbsc/src/libiu/iu.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -89,12 +90,10 @@ static LLIST_HEAD(ue_conn_ctx_list); static LLIST_HEAD(rnc_list); const struct value_string iu_event_type_names[] = { -#define IU_EVT_STR(X) { X, #X } - IU_EVT_STR(IU_EVENT_RAB_ASSIGN), - IU_EVT_STR(IU_EVENT_SECURITY_MODE_COMPLETE), - IU_EVT_STR(IU_EVENT_IU_RELEASE), - IU_EVT_STR(IU_EVENT_LINK_INVALIDATED), -#undef IU_EVT_STR + OSMO_VALUE_STRING(IU_EVENT_RAB_ASSIGN), + OSMO_VALUE_STRING(IU_EVENT_SECURITY_MODE_COMPLETE), + OSMO_VALUE_STRING(IU_EVENT_IU_RELEASE), + OSMO_VALUE_STRING(IU_EVENT_LINK_INVALIDATED), { 0, NULL } }; -- cgit v1.2.3