Browse code

registrar Removed unnecessary child_fixup for min_expires parameter

The param was not exported to the stats framework.

Marius Zbihlei authored on 12/03/2010 09:36:10
Showing 4 changed files
... ...
@@ -50,7 +50,7 @@ void	*registrar_cfg = &default_registrar_cfg;
50 50
 cfg_def_t	registrar_cfg_def[] = {
51 51
 	{"default_expires",	CFG_VAR_INT | CFG_CB_ONLY_ONCE,	0, 0, 0, default_expires_stats_update,
52 52
 		"Contains number of second to expire if no expire hf or contact expire present" },
53
-	{"min_expires",		CFG_VAR_INT | CFG_CB_ONLY_ONCE,	0, 0, 0, min_expires_stats_update,
53
+	{"min_expires",		CFG_VAR_INT | CFG_CB_ONLY_ONCE,	0, 0, 0, 0,
54 54
 		"The minimum expires value of a Contact. Value 0 disables the checking. "},
55 55
 	{"max_expires",		CFG_VAR_INT | CFG_CB_ONLY_ONCE,	0, 0, 0, max_expires_stats_update,
56 56
 		"The maximum expires value of a Contact. Value 0 disables the checking. "},
... ...
@@ -44,7 +44,6 @@ extern void	*registrar_cfg;
44 44
 extern cfg_def_t	registrar_cfg_def[];
45 45
 
46 46
 extern void default_expires_stats_update(str*, str*);
47
-extern void min_expires_stats_update(str*, str*);
48 47
 extern void max_expires_stats_update(str*, str*);
49 48
 
50 49
 #endif
... ...
@@ -532,10 +532,6 @@ void default_expires_stats_update(str* gname, str* name){
532 532
 	update_stat(default_expire_stat, cfg_get(registrar, registrar_cfg, default_expires));
533 533
 }
534 534
 
535
-void min_expires_stats_update(str* gname, str* name){
536
-	update_stat(min_expires_stat, cfg_get(registrar, registrar_cfg, min_expires));
537
-}
538
-
539 535
 void max_expires_stats_update(str* gname, str* name){
540 536
 	update_stat(max_expires_stat, cfg_get(registrar, registrar_cfg, max_expires));
541 537
 }
... ...
@@ -96,7 +96,6 @@ extern struct sl_binds slb;
96 96
 extern stat_var *accepted_registrations;
97 97
 extern stat_var *rejected_registrations;
98 98
 extern stat_var *default_expire_stat;
99
-extern stat_var *min_expires_stat;
100 99
 extern stat_var *max_expires_stat;
101 100
 
102 101
 #endif /* REG_MOD_H */