Browse Source

dispatcher: Fixing misspelled words in some code's variables

alezzandro 10 năm trước cách đây
mục cha
commit
f0d642820e

+ 2 - 2
modules/dispatcher/config.c

@@ -31,14 +31,14 @@
 #include "config.h"
 #include "config.h"
 
 
 struct cfg_group_dispatcher	default_dispatcher_cfg = {
 struct cfg_group_dispatcher	default_dispatcher_cfg = {
-		3,	/* Probing threshhold */	
+		3,	/* Probing threshold */	
 		{0,0}	/* reply codes */
 		{0,0}	/* reply codes */
 	    };
 	    };
 
 
 void	*dispatcher_cfg = &default_dispatcher_cfg;
 void	*dispatcher_cfg = &default_dispatcher_cfg;
 
 
 cfg_def_t	dispatcher_cfg_def[] = {
 cfg_def_t	dispatcher_cfg_def[] = {
-	{"probing_threshhold",		CFG_VAR_INT | CFG_ATOMIC, 	0, 0, 0, 0,
+	{"probing_threshold",		CFG_VAR_INT | CFG_ATOMIC, 	0, 0, 0, 0,
 		"Number of failed requests, before a destination is set to probing."},
 		"Number of failed requests, before a destination is set to probing."},
 	{"ping_reply_codes",		CFG_VAR_STR | CFG_CB_ONLY_ONCE ,			0, 0, 0, ds_ping_reply_codes_update,
 	{"ping_reply_codes",		CFG_VAR_STR | CFG_CB_ONLY_ONCE ,			0, 0, 0, ds_ping_reply_codes_update,
 		"Additional, valid reply codes for the OPTIONS Pinger. Default is \"\""},
 		"Additional, valid reply codes for the OPTIONS Pinger. Default is \"\""},

+ 1 - 1
modules/dispatcher/config.h

@@ -27,7 +27,7 @@
 #include "../../str.h"
 #include "../../str.h"
 
 
 struct cfg_group_dispatcher {
 struct cfg_group_dispatcher {
-	int probing_threshhold;
+	int probing_threshold;
 	str ds_ping_reply_codes_str;
 	str ds_ping_reply_codes_str;
 };
 };
 
 

+ 3 - 2
modules/dispatcher/dispatch.c

@@ -38,6 +38,7 @@
  * 2007-07-18  removed index stuff
  * 2007-07-18  removed index stuff
  * 			   added DB support to load/reload data(ancuta)
  * 			   added DB support to load/reload data(ancuta)
  * 2007-09-17  added list-file support for reload data (carstenbock)
  * 2007-09-17  added list-file support for reload data (carstenbock)
+ * 2014-12-23  Corrected misspelled words in some variables' name (alezzandro)
  */
  */
 
 
 /*! \file
 /*! \file
@@ -2239,7 +2240,7 @@ int ds_update_state(sip_msg_t *msg, int group, str *address, int state)
 			if(state & DS_TRYING_DST)
 			if(state & DS_TRYING_DST)
 			{
 			{
 				idx->dlist[i].failure_count++;
 				idx->dlist[i].failure_count++;
-				if (idx->dlist[i].failure_count >= probing_threshhold)
+				if (idx->dlist[i].failure_count >= probing_threshold)
 				{
 				{
 					idx->dlist[i].flags &= ~DS_TRYING_DST;
 					idx->dlist[i].flags &= ~DS_TRYING_DST;
 					idx->dlist[i].flags |= DS_INACTIVE_DST;
 					idx->dlist[i].flags |= DS_INACTIVE_DST;
@@ -2378,7 +2379,7 @@ int ds_print_list(FILE *fout)
 				if (list->dlist[j].failure_count > 0) {
 				if (list->dlist[j].failure_count > 0) {
 					fprintf(fout, " (Fail %d/%d)",
 					fprintf(fout, " (Fail %d/%d)",
 							list->dlist[j].failure_count,
 							list->dlist[j].failure_count,
-							probing_threshhold);
+							probing_threshold);
 				} else {
 				} else {
 					fprintf(fout, "           ");
 					fprintf(fout, "           ");
 				}
 				}

+ 2 - 1
modules/dispatcher/dispatch.h

@@ -30,6 +30,7 @@
  *		re-enabling of destinations
  *		re-enabling of destinations
  * 2007-05-08  Ported the changes to SVN-Trunk and renamed ds_is_domain
  * 2007-05-08  Ported the changes to SVN-Trunk and renamed ds_is_domain
  *		to ds_is_from_list.
  *		to ds_is_from_list.
+ * 2014-12-23  Corrected misspelled words in some variables' name (alezzandro) 
  */
  */
 
 
 /*! \file
 /*! \file
@@ -100,7 +101,7 @@ extern pv_spec_t ds_attrs_pv;
 extern struct tm_binds tmb;
 extern struct tm_binds tmb;
 extern str ds_ping_method;
 extern str ds_ping_method;
 extern str ds_ping_from;
 extern str ds_ping_from;
-extern int probing_threshhold; /*!< number of failed requests,
+extern int probing_threshold; /*!< number of failed requests,
 								 before a destination is taken into probing */ 
 								 before a destination is taken into probing */ 
 extern int ds_probing_mode;
 extern int ds_probing_mode;
 extern str ds_outbound_proxy;
 extern str ds_outbound_proxy;

+ 6 - 5
modules/dispatcher/dispatcher.c

@@ -34,6 +34,7 @@
  * 2007-07-18  Added support for load/reload groups from DB 
  * 2007-07-18  Added support for load/reload groups from DB 
  * 			   reload triggered from ds_reload MI_Command (ancuta)
  * 			   reload triggered from ds_reload MI_Command (ancuta)
  * 2014-12-12  Added "ds_list_exist" function
  * 2014-12-12  Added "ds_list_exist" function
+ * 2014-12-23  Corrected misspelled words in some variables' name (alezzandro)
  */
  */
 
 
 /*! \file
 /*! \file
@@ -108,7 +109,7 @@ unsigned short sock_avp_type;
 
 
 pv_elem_t * hash_param_model = NULL;
 pv_elem_t * hash_param_model = NULL;
 
 
-int probing_threshhold = 1; /* number of failed requests, before a destination
+int probing_threshold = 1; /* number of failed requests, before a destination
 							   is taken into probing */
 							   is taken into probing */
 str ds_ping_method = str_init("OPTIONS");
 str ds_ping_method = str_init("OPTIONS");
 str ds_ping_from   = str_init("sip:dispatcher@localhost");
 str ds_ping_from   = str_init("sip:dispatcher@localhost");
@@ -240,7 +241,7 @@ static param_export_t params[]={
 	{"hash_pvar",       PARAM_STR, &hash_pvar_param},
 	{"hash_pvar",       PARAM_STR, &hash_pvar_param},
 	{"setid_pvname",    PARAM_STR, &ds_setid_pvname},
 	{"setid_pvname",    PARAM_STR, &ds_setid_pvname},
 	{"attrs_pvname",    PARAM_STR, &ds_attrs_pvname},
 	{"attrs_pvname",    PARAM_STR, &ds_attrs_pvname},
-	{"ds_probing_threshhold", INT_PARAM, &probing_threshhold},
+	{"ds_probing_threshold", INT_PARAM, &probing_threshold},
 	{"ds_ping_method",     PARAM_STR, &ds_ping_method},
 	{"ds_ping_method",     PARAM_STR, &ds_ping_method},
 	{"ds_ping_from",       PARAM_STR, &ds_ping_from},
 	{"ds_ping_from",       PARAM_STR, &ds_ping_from},
 	{"ds_ping_interval",   INT_PARAM, &ds_ping_interval},
 	{"ds_ping_interval",   INT_PARAM, &ds_ping_interval},
@@ -321,8 +322,8 @@ static int mod_init(void)
 		}
 		}
 	}	
 	}	
 	/* Copy Threshhold to Config */
 	/* Copy Threshhold to Config */
-	cfg_get(dispatcher, dispatcher_cfg, probing_threshhold)
-		= probing_threshhold;
+	cfg_get(dispatcher, dispatcher_cfg, probing_threshold)
+		= probing_threshold;
 
 
 
 
 	if(init_data()!= 0)
 	if(init_data()!= 0)
@@ -549,7 +550,7 @@ static int mod_init(void)
 }
 }
 
 
 /*! \brief
 /*! \brief
- * Initialize childreng
+ * Initialize children
  */
  */
 static int child_init(int rank)
 static int child_init(int rank)
 {
 {