瀏覽代碼

pv_headers: avoid local variable hides global variable

Victor Seva 7 月之前
父節點
當前提交
1c302265c0
共有 1 個文件被更改,包括 11 次插入11 次删除
  1. 11 11
      src/modules/pv_headers/pv_headers.c

+ 11 - 11
src/modules/pv_headers/pv_headers.c

@@ -292,7 +292,7 @@ static int w_pvh_remove_header_param(struct sip_msg *msg, char *p1, char *p2)
 }
 
 /* clang-format off */
-static cmd_export_t cmds[] = {
+static cmd_export_t mod_cmds[] = {
 	{"pvh_collect_headers", (cmd_function)w_pvh_collect_headers, 0, 0, 0,
 			ANY_ROUTE},
 	{"pvh_apply_headers", (cmd_function)w_pvh_apply_headers, 0, 0, 0,
@@ -348,7 +348,7 @@ static pv_export_t mod_pvs[] = {
 	{{0, 0}, 0, 0, 0, 0, 0, 0, 0}
 };
 
-static param_export_t params[] = {
+static param_export_t mod_params[] = {
 	{"xavi_name", PARAM_STR, &_pvh_params.xavi_name},
 	{"header_value_size", PARAM_INT, &_pvh_params.hdr_value_size},
 	{"header_collect_flag", PARAM_INT, &_pvh_params.flags[PVH_HDRS_COLLECTED]},
@@ -360,16 +360,16 @@ static param_export_t params[] = {
 };
 
 struct module_exports exports = {
-	MODULE_NAME,	 /* module name */
+	MODULE_NAME,     /* module name */
 	DEFAULT_DLFLAGS, /* dlopen flags */
-	cmds,			 /* exported functions */
-	params,			 /* exported parameters */
-	0,				 /* RPC method exports */
-	mod_pvs,		 /* exported pseudo-variables */
-	0,				 /* response handling function */
-	mod_init,		 /* module initialization function */
-	0,				 /* per-child init function */
-	mod_destroy		 /* module destroy function */
+	mod_cmds,        /* exported functions */
+	mod_params,      /* exported parameters */
+	0,               /* RPC method exports */
+	mod_pvs,         /* exported pseudo-variables */
+	0,               /* response handling function */
+	mod_init,        /* module initialization function */
+	0,               /* per-child init function */
+	mod_destroy      /* module destroy function */
 };
 /* clang-format on */