Module: kamailio Branch: master Commit: b38fbe7ab4988f916ed0dd4156c732e615980150 URL: https://github.com/kamailio/kamailio/commit/b38fbe7ab4988f916ed0dd4156c732e615980150
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2025-02-19T18:47:40+01:00 xhttp_rpc: avoid local variable hides global variable --- Modified: src/modules/xhttp_rpc/xhttp_rpc.c --- Diff: https://github.com/kamailio/kamailio/commit/b38fbe7ab4988f916ed0dd4156c732e615980150.diff Patch: https://github.com/kamailio/kamailio/commit/b38fbe7ab4988f916ed0dd4156c732e615980150.patch --- diff --git a/src/modules/xhttp_rpc/xhttp_rpc.c b/src/modules/xhttp_rpc/xhttp_rpc.c index 00465046f2d..b9c62763168 100644 --- a/src/modules/xhttp_rpc/xhttp_rpc.c +++ b/src/modules/xhttp_rpc/xhttp_rpc.c @@ -88,12 +88,12 @@ int buf_size = 0; char error_buf[ERROR_REASON_BUF_LEN]; /* clang-format off */ -static cmd_export_t cmds[] = { +static cmd_export_t mod_cmds[] = { {"dispatch_xhttp_rpc", (cmd_function)xhttp_rpc_dispatch, 0, 0, 0, REQUEST_ROUTE | EVENT_ROUTE}, {0, 0, 0, 0, 0, 0} }; -static param_export_t params[] = { +static param_export_t mod_params[] = { {"xhttp_rpc_root", PARAM_STR, &xhttp_rpc_root}, {"xhttp_rpc_buf_size", PARAM_INT, &buf_size}, {0, 0, 0} @@ -103,8 +103,8 @@ static param_export_t params[] = { struct module_exports exports = { "xhttp_rpc", /* module name */ DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd (cfg function) exports */ - params, /* param exports */ + mod_cmds, /* cmd (cfg function) exports */ + mod_params, /* param exports */ 0, /* RPC method exports */ 0, /* pv exports */ 0, /* response handling function */ _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!