]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use typedef to simplify things
authorAlan T. DeKok <aland@freeradius.org>
Wed, 25 Aug 2021 12:23:23 +0000 (08:23 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 25 Aug 2021 12:23:23 +0000 (08:23 -0400)
src/lib/unlang/compile.c

index 3f3b00e0d9e4e58bc50cda9ebd2d5a512a3ffa2b..108228664b228ee36c88f6402031b1a9a8cc3f65 100644 (file)
@@ -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 */
        {