Module: kamailio
Branch: master
Commit: 064a88492c5d908569ba9d01f2116e7795a74583
URL:
https://github.com/kamailio/kamailio/commit/064a88492c5d908569ba9d01f2116e7…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2024-12-04T08:58:14+01:00
log_systemd: add fixup_free* to exported functions
---
Modified: src/modules/log_systemd/log_systemd_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/064a88492c5d908569ba9d01f2116e7…
Patch:
https://github.com/kamailio/kamailio/commit/064a88492c5d908569ba9d01f2116e7…
---
diff --git a/src/modules/log_systemd/log_systemd_mod.c
b/src/modules/log_systemd/log_systemd_mod.c
index 0f6d5f460a6..1aabd135f9b 100644
--- a/src/modules/log_systemd/log_systemd_mod.c
+++ b/src/modules/log_systemd/log_systemd_mod.c
@@ -47,27 +47,30 @@ static int w_sd_journal_print(struct sip_msg *msg, char *lev, char
*txt);
static int w_sd_journal_send_xavp(struct sip_msg *msg, char *xname, char *);
+/* clang-format off */
static cmd_export_t cmds[] = {
- {"sd_journal_print", (cmd_function)w_sd_journal_print, 2,
- fixup_spve_spve, 0, ANY_ROUTE},
- {"sd_journal_send_xavp", (cmd_function)w_sd_journal_send_xavp, 1,
- fixup_spve_spve, 0, ANY_ROUTE},
- {0, 0, 0, 0, 0, 0}};
+ {"sd_journal_print", (cmd_function)w_sd_journal_print, 2,
+ fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
+ {"sd_journal_send_xavp", (cmd_function)w_sd_journal_send_xavp, 1,
+ fixup_spve_spve, fixup_free_spve_spve, ANY_ROUTE},
+ {0, 0, 0, 0, 0, 0}
+};
static param_export_t params[] = {{0, 0, 0}};
struct module_exports exports = {
- "log_systemd", /* module name */
- DEFAULT_DLFLAGS, /* dlopen flags */
- cmds, /* cmd (cfg function) exports */
- params, /* param exports */
- 0, /* RPC method exports */
- 0, /* pseudo-variables exports */
- 0, /* response handling function */
- mod_init, /* module init function */
- child_init, /* per-child init function */
- mod_destroy /* module destroy function */
+ "log_systemd", /* module name */
+ DEFAULT_DLFLAGS, /* dlopen flags */
+ cmds, /* cmd (cfg function) exports */
+ params, /* param exports */
+ 0, /* RPC method exports */
+ 0, /* pseudo-variables exports */
+ 0, /* response handling function */
+ mod_init, /* module init function */
+ child_init, /* per-child init function */
+ mod_destroy /* module destroy function */
};
+/* clang-format on */
/**
* init module function
@@ -213,4 +216,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2)
_lc_log_systemd = 1;
sr_kemi_modules_add(sr_kemi_log_systemd_exports);
return 0;
-}
\ No newline at end of file
+}