From: Alan T. DeKok Date: Wed, 25 Aug 2021 12:23:23 +0000 (-0400) Subject: use typedef to simplify things X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e12a43ff9aa5861707ebcee1eeb43deb6f67d27f;p=thirdparty%2Ffreeradius-server.git use typedef to simplify things --- diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 3f3b00e0d9e..108228664b2 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -82,13 +82,13 @@ static char const * const comp2str[] = { "post-auth" }; -typedef int const unlang_action_table_t[RLM_MODULE_NUMCODES]; +typedef int unlang_actions_t[RLM_MODULE_NUMCODES]; typedef struct { rlm_components_t component; char const *section_name1; char const *section_name2; - unlang_action_table_t *actions; + unlang_actions_t const *actions; tmpl_rules_t const *rules; } unlang_compile_t; @@ -97,8 +97,7 @@ static unlang_t *compile_empty(unlang_t *parent, unlang_compile_t *unlang_ctx, C static char const unlang_spaces[] = " "; -static const int -default_actions[MOD_COUNT][RLM_MODULE_NUMCODES] = +static const unlang_actions_t default_actions[MOD_COUNT] = { /* authenticate */ {