[sr-dev] git:mariuszbihlei/p_usrloc: modules/p_usrloc removed some unneeded params

Marius Zbihlei marius.zbihlei at 1and1.ro
Tue Jan 11 12:46:38 CET 2011


Module: sip-router
Branch: mariuszbihlei/p_usrloc
Commit: 9b2ea2b7b6b9c2eacb3d0486377ed012e398e40f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9b2ea2b7b6b9c2eacb3d0486377ed012e398e40f

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Tue Jan 11 12:18:11 2011 +0200

modules/p_usrloc removed some unneeded params

---

 modules_k/p_usrloc/ul_mod.c |    3 ---
 modules_k/p_usrloc/ul_mod.h |    1 -
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/modules_k/p_usrloc/ul_mod.c b/modules_k/p_usrloc/ul_mod.c
index a451e85..cc419a3 100644
--- a/modules_k/p_usrloc/ul_mod.c
+++ b/modules_k/p_usrloc/ul_mod.c
@@ -155,7 +155,6 @@ str path_col        = str_init(PATH_COL);		/*!< Name of column containing the Pa
 str sock_col        = str_init(SOCK_COL);		/*!< Name of column containing the received socket */
 str methods_col     = str_init(METHODS_COL);		/*!< Name of column containing the supported methods */
 str last_mod_col     = str_init(LAST_MOD_COL);		/*!< Name of column containing the last modified date */
-str db_url          = str_init(DEFAULT_DB_URL);		/*!< Database URL */
 int timer_interval  = 60;				/*!< Timer interval in seconds */
 int db_mode         = 0;				/*!< Database sync scheme: 0-no db, 1-write through, 2-write back, 3-only db */
 int use_domain      = 0;				/*!< Whether usrloc should use domain part of aor */
@@ -224,7 +223,6 @@ static param_export_t params[] = {
 	{"cseq_column",       STR_PARAM, &cseq_col.s      },
 	{"flags_column",      STR_PARAM, &flags_col.s     },
 	{"cflags_column",     STR_PARAM, &cflags_col.s    },
-	{"db_url",            STR_PARAM, &db_url.s        },
 	{"timer_interval",    INT_PARAM, &timer_interval  },
 	{"db_mode",           INT_PARAM, &db_mode         },
 	{"use_domain",        INT_PARAM, &use_domain      },
@@ -345,7 +343,6 @@ static int mod_init(void)
 	sock_col.len = strlen(sock_col.s);
 	methods_col.len = strlen(methods_col.s);
 	last_mod_col.len = strlen(last_mod_col.s);
-	db_url.len = strlen(db_url.s);
 	
 	write_db_url.len = strlen (write_db_url.s);
 	read_db_url.len = strlen (read_db_url.s);
diff --git a/modules_k/p_usrloc/ul_mod.h b/modules_k/p_usrloc/ul_mod.h
index de7c00e..cd6f3ce 100644
--- a/modules_k/p_usrloc/ul_mod.h
+++ b/modules_k/p_usrloc/ul_mod.h
@@ -92,7 +92,6 @@ extern str sock_col;
 extern str methods_col;
 extern str last_mod_col;
 
-extern str db_url;
 extern int timer_interval;
 extern int db_mode;
 extern int use_domain;




More information about the sr-dev mailing list