Procházet zdrojové kódy

sipcapture: avoid local variable hides global variable

Victor Seva před 7 měsíci
rodič
revize
4963f0af2f
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      src/modules/sipcapture/sipcapture.c

+ 4 - 4
src/modules/sipcapture/sipcapture.c

@@ -314,7 +314,7 @@ struct hep_timeinfo *heptime = NULL;
 /*! \brief
  * Exported functions
  */
-static cmd_export_t cmds[] = {
+static cmd_export_t mod_cmds[] = {
 	{"sip_capture", (cmd_function)w_sip_capture0, 0,
 		0, 0, ANY_ROUTE},
 	{"sip_capture", (cmd_function)w_sip_capture1, 1,
@@ -343,7 +343,7 @@ static pv_export_t mod_pvs[] = {
 /*! \brief
  * Exported parameters
  */
-static param_export_t params[] = {
+static param_export_t mod_params[] = {
 	{"db_url", PARAM_STR, &db_url},
 	{"table_name", PARAM_STR, &_sipcap_table_name},
 	{"hash_source", PARAM_STR, &hash_source},
@@ -435,8 +435,8 @@ stat_export_t *sipcapture_stats = NULL;
 struct module_exports exports = {
 	"sipcapture",    /* module name */
 	DEFAULT_DLFLAGS, /* dlopen flags */
-	cmds,            /* exported functions */
-	params,          /* exported parameters */
+	mod_cmds,        /* exported functions */
+	mod_params,      /* exported parameters */
 	0,               /* exported rpc functions */
 	mod_pvs,         /* exported pseudo-variables */
 	0,               /* response handling function */