Module: kamailio
Branch: master
Commit: a8c8eb5e2b9a8759c473a1db2d54f02011cc4238
URL: 
https://github.com/kamailio/kamailio/commit/a8c8eb5e2b9a8759c473a1db2d54f02011cc4238

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-07-01T11:51:54+02:00

auth_xkeys: format exported structures

---

Modified: src/modules/auth_xkeys/auth_xkeys_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/a8c8eb5e2b9a8759c473a1db2d54f02011cc4238.diff
Patch: 
https://github.com/kamailio/kamailio/commit/a8c8eb5e2b9a8759c473a1db2d54f02011cc4238.patch

---

diff --git a/src/modules/auth_xkeys/auth_xkeys_mod.c 
b/src/modules/auth_xkeys/auth_xkeys_mod.c
index 5711bc3d958..c8baa250d97 100644
--- a/src/modules/auth_xkeys/auth_xkeys_mod.c
+++ b/src/modules/auth_xkeys/auth_xkeys_mod.c
@@ -56,26 +56,34 @@ static int fixup_auth_xkeys_check(void **param, int 
param_no);
 /* int auth_xkeys_timer_mode = 0; */
 
 
-static cmd_export_t cmds[] = {{"auth_xkeys_add", 
(cmd_function)w_auth_xkeys_add,
-                                                                         4, 
fixup_auth_xkeys_add, 0, ANY_ROUTE},
-               {"auth_xkeys_check", (cmd_function)w_auth_xkeys_check, 4,
-                               fixup_auth_xkeys_check, 0, ANY_ROUTE},
-               {0, 0, 0, 0, 0, 0}};
+/* clang-format off */
+static cmd_export_t cmds[] = {
+       {"auth_xkeys_add", (cmd_function)w_auth_xkeys_add, 4,
+               fixup_auth_xkeys_add, 0, ANY_ROUTE},
+       {"auth_xkeys_check", (cmd_function)w_auth_xkeys_check, 4,
+               fixup_auth_xkeys_check, 0, ANY_ROUTE},
+       {0, 0, 0, 0, 0, 0}
+};
 
 static param_export_t params[] = {
-               {"xkey", PARAM_STRING | PARAM_USE_FUNC, (void 
*)authx_xkey_param},
-               /* {"timer_mode",     PARAM_INT,   &auth_xkeys_timer_mode}, */
-               {0, 0, 0}};
+       {"xkey", PARAM_STRING | PARAM_USE_FUNC, (void *)authx_xkey_param},
+       /* {"timer_mode",     PARAM_INT,   &auth_xkeys_timer_mode}, */
+       {0, 0, 0}
+};
 
 struct module_exports exports = {
-               "auth_xkeys", DEFAULT_DLFLAGS, /* dlopen flags */
-               cmds, params, 0,                           /* exported RPC 
methods */
-               0,                                                         /* 
exported pseudo-variables */
-               0,                                                         /* 
response function */
-               mod_init,                                          /* module 
initialization function */
-               child_init,                                        /* per child 
init function */
-               mod_destroy                                        /* destroy 
function */
+       "auth_xkeys",
+       DEFAULT_DLFLAGS,        /* dlopen flags */
+       cmds,
+       params,
+       0,                                      /* exported RPC methods */
+       0,                                      /* exported pseudo-variables */
+       0,                                      /* response function */
+       mod_init,                       /* module initialization function */
+       child_init,                     /* per child init function */
+       mod_destroy                     /* destroy function */
 };
+/* clang-format on */
 
 
 /**

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to