Просмотр исходного кода

Fix various spelling errors.

- Credits to Victor Seva for providing the patch.
Timo Reimann 13 лет назад
Родитель
Сommit
adc585e48f

+ 1 - 1
modules/db_postgres/pg_cmd.c

@@ -349,7 +349,7 @@ static int upload_cmd(db_cmd_t* cmd)
 	/* FIXME: The function should take the connection as one of parameters */
 	pcon = DB_GET_PAYLOAD(cmd->ctx->con[db_payload_idx]);
 
-	DBG("postgres: Uploading comand '%s': '%s'\n", pcmd->name, 
+	DBG("postgres: Uploading command '%s': '%s'\n", pcmd->name,
 		pcmd->sql_cmd.s);
 
 	res = PQprepare(pcon->con, pcmd->name, pcmd->sql_cmd.s, 0, NULL);

+ 1 - 1
modules/sipcapture/sipcapture.c

@@ -1394,7 +1394,7 @@ int raw_capture_socket(struct ip_addr* ip, str* iface, int port_start, int port_
         }
 #endif
         else {
-                ERR("raw_capture_socket: LSF currently suppoted only on linux\n");
+                ERR("raw_capture_socket: LSF currently supported only on linux\n");
                 goto error;                        
         }
                 

+ 1 - 1
modules/sms/libsms_getsms.c

@@ -519,7 +519,7 @@ int cds2sms(struct incame_sms *sms, struct modem *mdm, char *s, int s_len)
 	ptr = s;
 	for ( n=0 ; n<2 && (ptr=strstr(ptr,"\r\n")) ; n++,ptr+=2 );
 	if (n<2) {
-		LM_ERR("failed to find pdu begining in CDS!\n");
+		LM_ERR("failed to find pdu beginning in CDS!\n");
 		goto error;
 	}
 	data = ptr;

+ 2 - 2
modules/sms/sms_funcs.c

@@ -641,7 +641,7 @@ int send_sms_as_sip( struct incame_sms *sms )
 	/* the rest of the sms (if any ;-)) is the body! */
 	sip_body.s = p;
 	sip_body.len = sms->ascii + sms->userdatalength - p;
-	/* let's trim out all \n an \r from begining */
+	/* let's trim out all \n an \r from beginning */
 	while ( sip_body.len && sip_body.s
 	&& (sip_body.s[0]=='\n' || sip_body.s[0]=='\r') ) {
 		sip_body.s++;
@@ -696,7 +696,7 @@ int send_sms_as_sip_scan_no(struct incame_sms *sms, char *to)
 	sip_body.len = sms->ascii + sms->userdatalength - sms->ascii;
 	sip_body.s = sms->ascii;	
 
-	/* let's trim out all \n an \r from begining */
+	/* let's trim out all \n an \r from beginning */
 	while (sip_body.len && sip_body.s && 
 	      (sip_body.s[0] == '\n' || sip_body.s[0] == '\r')) {
 	       sip_body.s++;

+ 2 - 2
modules/tls/tls_init.c

@@ -544,8 +544,8 @@ int init_tls_h(void)
 				" zlib compression: %s"
 				"\n %s\n",
 				SSLeay_version(SSLEAY_VERSION), ssl_version,
-				(lib_kerberos==1)?"on":(lib_kerberos==0)?"off":"unkown",
-				(lib_zlib==1)?"on":(lib_zlib==0)?"off":"unkown",
+				(lib_kerberos==1)?"on":(lib_kerberos==0)?"off":"unknown",
+				(lib_zlib==1)?"on":(lib_zlib==0)?"off":"unknown",
 				SSLeay_version(SSLEAY_CFLAGS));
 	if (lib_kerberos!=kerberos_support){
 		if (lib_kerberos!=-1){

+ 1 - 1
modules_k/p_usrloc/ul_db_tran.c

@@ -85,7 +85,7 @@ int ul_db_tran_commit(ul_db_handle_t * handle, int working[]) {
 	for(i=0; i<DB_NUM; i++) {
 		if((handle->db[i].status == DB_ON) && (working[i])) {
 			if(submit_tran_commit(&handle->db[i].dbf, handle->db[i].dbh) < 0) {
-				LM_ERR("error while commiting "
+				LM_ERR("error while committing "
 				    "transaction on id %i, db %i.\n", handle->id, handle->db[i].no);
 				if(db_handle_error(handle, handle->db[i].no) < 0) {
 					LM_ERR("error during handling error "

+ 1 - 1
modules_k/path/path.c

@@ -210,7 +210,7 @@ void path_rr_callback(struct sip_msg *_m, str *r_param, void *cb_param)
 	param_t *params;
 			
 	if (parse_params(r_param, CLASS_CONTACT, &hooks, &params) != 0) {
-		LM_ERR("failed to parse route parametes\n");
+		LM_ERR("failed to parse route parameters\n");
 		return;
 	}
 

+ 1 - 1
modules_k/pv/pv_core.c

@@ -1707,7 +1707,7 @@ int pv_set_dsturi(struct sip_msg* msg, pv_param_t *param,
 	}
 	if(!(val->flags&PV_VAL_STR))
 	{
-		LM_ERR("error - str value requred to set dst uri\n");
+		LM_ERR("error - str value required to set dst uri\n");
 		goto error;
 	}
 	

+ 2 - 2
modules_k/regex/regex_mod.c

@@ -316,7 +316,7 @@ static int load_pcres(int action)
 			i++;
 			/* Check if there are more patterns than the max value */
 			if (i >= max_groups) {
-				LM_ERR("max patterns exceded\n");
+				LM_ERR("max patterns exceeded\n");
 				fclose(f);
 				goto err;
 			}
@@ -328,7 +328,7 @@ static int load_pcres(int action)
 		
 		/* Check if the patter size is too big (aprox) */
 		if (strlen(patterns[i]) + strlen(line) >= group_max_size - 2) {
-			LM_ERR("pattern max file exceded\n");
+			LM_ERR("pattern max file exceeded\n");
 			fclose(f);
 			goto err;
 		}

+ 1 - 1
modules_k/seas/event_dispatcher.c

@@ -192,7 +192,7 @@ int dispatcher_main_loop(void)
 	    continue;
 	 }
 	 if(errno==EBADF){
-	    LM_ERR("invalid file descriptor pased to poll (%s)\n",
+	    LM_ERR("invalid file descriptor passed to poll (%s)\n",
 				strerror(errno));
 	    return -1;/*??*/
 	 }

+ 1 - 1
modules_s/domain/domain.c

@@ -182,7 +182,7 @@ int db_load_domain_attrs(domain_t* d)
 	load_attrs_cmd->match[0].v.lstr = d->did;
 
 	if (db_exec(&res, load_attrs_cmd) < 0) {
-		ERR("Error while quering database\n");
+		ERR("Error while querying database\n");
 		return -1;
 	}
 

+ 1 - 1
rvalue.c

@@ -335,7 +335,7 @@ char* rval_type_name(enum rval_type type)
 		case RV_SEL:
 			return "select";
 	}
-	return "error_unkown_type";
+	return "error_unknown_type";
 }
 
 

+ 1 - 1
socket_info.c

@@ -1171,7 +1171,7 @@ int add_interfaces_via_netlink(char* if_name, int family, unsigned short port,
 			//if(! (ifaces[i].flags & IFF_UP) ) continue;
 
 			for(tmp = ifaces[i].addresses; tmp; tmp = tmp->next){
-				LM_DBG("\t in add_iface_via_netlink Name %s Adress %s\n", ifaces[i].name, tmp->addr);
+				LM_DBG("\t in add_iface_via_netlink Name %s Address %s\n", ifaces[i].name, tmp->addr);
 		                /* match family */
                                 if (family == tmp->family){
 					/* check if loopback */

+ 1 - 1
tcp_main.c

@@ -1716,7 +1716,7 @@ error:
 						c->id, port);
 			break;
 		default:
-			LOG(L_ERR, "ERROR: tcpconn_add_alias: unkown error %d\n", ret);
+			LOG(L_ERR, "ERROR: tcpconn_add_alias: unknown error %d\n", ret);
 	}
 	return -1;
 }

+ 1 - 1
utils/kamctl/kamdbctl.8

@@ -54,7 +54,7 @@ Entirely deletes and than re-creates tables.
 Restores tables from a file.
 
 .SH NOTES
-Not all databases scripts suport all commands.
+Not all databases scripts support all commands.
 
 .SH FILES
 .PD 0