[sr-dev] git:master: registrar Removed unnecessary child_fixup for min_expires parameter

Marius Zbihlei marius.zbihlei at 1and1.ro
Fri Mar 12 10:36:58 CET 2010


Module: sip-router
Branch: master
Commit: 2f641e36779c4eb0f50781aad76b0db888142dc8
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2f641e36779c4eb0f50781aad76b0db888142dc8

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Fri Mar 12 11:36:10 2010 +0200

registrar Removed unnecessary child_fixup for min_expires parameter

The param was not exported to the stats framework.

---

 modules_k/registrar/config.c  |    2 +-
 modules_k/registrar/config.h  |    1 -
 modules_k/registrar/reg_mod.c |    4 ----
 modules_k/registrar/reg_mod.h |    1 -
 4 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/modules_k/registrar/config.c b/modules_k/registrar/config.c
index 3c56a54..adc3d8a 100644
--- a/modules_k/registrar/config.c
+++ b/modules_k/registrar/config.c
@@ -50,7 +50,7 @@ void	*registrar_cfg = &default_registrar_cfg;
 cfg_def_t	registrar_cfg_def[] = {
 	{"default_expires",	CFG_VAR_INT | CFG_CB_ONLY_ONCE,	0, 0, 0, default_expires_stats_update,
 		"Contains number of second to expire if no expire hf or contact expire present" },
-	{"min_expires",		CFG_VAR_INT | CFG_CB_ONLY_ONCE,	0, 0, 0, min_expires_stats_update,
+	{"min_expires",		CFG_VAR_INT | CFG_CB_ONLY_ONCE,	0, 0, 0, 0,
 		"The minimum expires value of a Contact. Value 0 disables the checking. "},
 	{"max_expires",		CFG_VAR_INT | CFG_CB_ONLY_ONCE,	0, 0, 0, max_expires_stats_update,
 		"The maximum expires value of a Contact. Value 0 disables the checking. "},
diff --git a/modules_k/registrar/config.h b/modules_k/registrar/config.h
index 1c20fd3..388bbbd 100644
--- a/modules_k/registrar/config.h
+++ b/modules_k/registrar/config.h
@@ -44,7 +44,6 @@ extern void	*registrar_cfg;
 extern cfg_def_t	registrar_cfg_def[];
 
 extern void default_expires_stats_update(str*, str*);
-extern void min_expires_stats_update(str*, str*);
 extern void max_expires_stats_update(str*, str*);
 
 #endif
diff --git a/modules_k/registrar/reg_mod.c b/modules_k/registrar/reg_mod.c
index eee1557..12205fc 100644
--- a/modules_k/registrar/reg_mod.c
+++ b/modules_k/registrar/reg_mod.c
@@ -532,10 +532,6 @@ void default_expires_stats_update(str* gname, str* name){
 	update_stat(default_expire_stat, cfg_get(registrar, registrar_cfg, default_expires));
 }
 
-void min_expires_stats_update(str* gname, str* name){
-	update_stat(min_expires_stat, cfg_get(registrar, registrar_cfg, min_expires));
-}
-
 void max_expires_stats_update(str* gname, str* name){
 	update_stat(max_expires_stat, cfg_get(registrar, registrar_cfg, max_expires));
 }
diff --git a/modules_k/registrar/reg_mod.h b/modules_k/registrar/reg_mod.h
index 162021b..d451ef9 100644
--- a/modules_k/registrar/reg_mod.h
+++ b/modules_k/registrar/reg_mod.h
@@ -96,7 +96,6 @@ extern struct sl_binds slb;
 extern stat_var *accepted_registrations;
 extern stat_var *rejected_registrations;
 extern stat_var *default_expire_stat;
-extern stat_var *min_expires_stat;
 extern stat_var *max_expires_stat;
 
 #endif /* REG_MOD_H */




More information about the sr-dev mailing list