]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use names field initialisers
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 2 Feb 2021 17:32:24 +0000 (17:32 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 2 Feb 2021 19:49:02 +0000 (19:49 +0000)
src/modules/proto_detail/proto_detail_process.c

index fc667c22435c18c72ed7a1f7251922b9179ba8e4..a27a33b292db10613e3bc5177b46660e0c6faa23 100644 (file)
@@ -202,9 +202,9 @@ static unlang_action_t mod_process(rlm_rcode_t *p_result, module_ctx_t const *mc
 
 
 static const virtual_server_compile_t compile_list[] = {
-       { "recv", NULL,                 MOD_AUTHORIZE },
-       { "send", "ok",                 MOD_POST_AUTH },
-       { "send", "fail",               MOD_POST_AUTH },
+       { .name = "recv", .name2 = NULL,        .component = MOD_AUTHORIZE },
+       { .name = "send", .name2 = "ok",        .component = MOD_POST_AUTH },
+       { .name = "send", .name2 = "fail",      .component = MOD_POST_AUTH },
 
        COMPILE_TERMINATOR
 };