Selaa lähdekoodia

core: fix spelling errors catched by lintian #688

Victor Seva 9 vuotta sitten
vanhempi
commit
6637bb23c4
6 muutettua tiedostoa jossa 9 lisäystä ja 9 poistoa
  1. 1 1
      cfg_core.c
  2. 1 1
      cfg_parser.c
  3. 1 1
      daemonize.c
  4. 2 2
      lvalue.c
  5. 1 1
      tcp_stats.c
  6. 3 3
      timer_proc.c

+ 1 - 1
cfg_core.c

@@ -140,7 +140,7 @@ static int check_raw_sock_support(void* cfg_h, str* gname, str* name,
 #else /* USE_RAW_SOCKS */
 	if (raw_udp4_send_sock < 0) {
 		if (val > 0) {
-			ERR("could not intialize raw socket on startup, please "
+			ERR("could not initialize raw socket on startup, please "
 					"restart as root or with CAP_NET_RAW\n");
 			return -1;
 		} else if (val < 0) {

+ 1 - 1
cfg_parser.c

@@ -613,7 +613,7 @@ static char* get_base_name(str* filename)
 
 
 
-/** intialize the config parser.
+/** initialize the config parser.
  * @param basedir - path to the config file name. If 0 the path
  *               (base directory) of the main ser.cfg file will be used, else
  *               basedir will be concatenated to the filename. It will be

+ 1 - 1
daemonize.c

@@ -114,7 +114,7 @@ retry:
 /** wait for an exit status to be send by daemon_status_send().
  * @param status - filled with the sent status (a char).
  * @return  0 on success, -1 on error (e.g. process died before sending
- *          status, not intialized a.s.o.).
+ *          status, not initialized a.s.o.).
  * Side-effects: it will close the write side of the pipe
  *  (must not be used from the same process as the daemon_status_send()).
  * Note: if init is not complete (only init, but no pre-daemonize)

+ 2 - 2
lvalue.c

@@ -83,7 +83,7 @@ inline static int lval_avp_assign(struct run_act_ctx* h, struct sip_msg* msg,
 	
 	switch(rv->type){
 		case RV_NONE:
-			BUG("non-intialized rval / rval expr \n");
+			BUG("non-initialized rval / rval expr \n");
 			/* unknown value => reset the avp in function of its type */
 			flags=avp->type;
 			AVP_ASSIGN_NOVAL();
@@ -262,7 +262,7 @@ inline static int lval_pvar_assign(struct run_act_ctx* h, struct sip_msg* msg,
 	ret=0;
 	switch(rv->type){
 		case RV_NONE:
-			BUG("non-intialized rval / rval expr \n");
+			BUG("non-initialized rval / rval expr \n");
 			PVAR_ASSIGN_NOVAL();
 			ret=-1;
 			break;

+ 1 - 1
tcp_stats.c

@@ -91,7 +91,7 @@ static counter_val_t tcp_info(counter_handle_t h, void* what)
 	return 0;
 }
 
-/** intialize tcp statistics.
+/** initialize tcp statistics.
  *  Must be called before forking.
  * @return < 0 on errror, 0 on success.
  */

+ 3 - 3
timer_proc.c

@@ -323,7 +323,7 @@ int sr_wtimer_add(timer_function* f, void* param, int interval)
 {
 	sr_wtimer_node_t *wt;
 	if(_sr_wtimer==NULL) {
-		LM_ERR("wtimer not intialized\n");
+		LM_ERR("wtimer not initialized\n");
 		return -1;
 	}
 
@@ -371,7 +371,7 @@ void sr_wtimer_exec(unsigned int ticks, void *param)
 	uint32_t cs;
 
 	if(_sr_wtimer==NULL) {
-		LM_ERR("wtimer not intialized\n");
+		LM_ERR("wtimer not initialized\n");
 		return;
 	}
 
@@ -409,7 +409,7 @@ void sr_wtimer_exec(unsigned int ticks, void *param)
 int sr_wtimer_start(void)
 {
 	if(_sr_wtimer==NULL) {
-		LM_ERR("wtimer not intialized\n");
+		LM_ERR("wtimer not initialized\n");
 		return -1;
 	}