Browse code

Fix various spelling errors.

- Credits to Victor Seva for providing the patch.

Timo Reimann authored on 22/04/2012 11:06:34
Showing 15 changed files
... ...
@@ -349,7 +349,7 @@ static int upload_cmd(db_cmd_t* cmd)
349 349
 	/* FIXME: The function should take the connection as one of parameters */
350 350
 	pcon = DB_GET_PAYLOAD(cmd->ctx->con[db_payload_idx]);
351 351
 
352
-	DBG("postgres: Uploading comand '%s': '%s'\n", pcmd->name, 
352
+	DBG("postgres: Uploading command '%s': '%s'\n", pcmd->name,
353 353
 		pcmd->sql_cmd.s);
354 354
 
355 355
 	res = PQprepare(pcon->con, pcmd->name, pcmd->sql_cmd.s, 0, NULL);
... ...
@@ -1394,7 +1394,7 @@ int raw_capture_socket(struct ip_addr* ip, str* iface, int port_start, int port_
1394 1394
         }
1395 1395
 #endif
1396 1396
         else {
1397
-                ERR("raw_capture_socket: LSF currently suppoted only on linux\n");
1397
+                ERR("raw_capture_socket: LSF currently supported only on linux\n");
1398 1398
                 goto error;                        
1399 1399
         }
1400 1400
                 
... ...
@@ -519,7 +519,7 @@ int cds2sms(struct incame_sms *sms, struct modem *mdm, char *s, int s_len)
519 519
 	ptr = s;
520 520
 	for ( n=0 ; n<2 && (ptr=strstr(ptr,"\r\n")) ; n++,ptr+=2 );
521 521
 	if (n<2) {
522
-		LM_ERR("failed to find pdu begining in CDS!\n");
522
+		LM_ERR("failed to find pdu beginning in CDS!\n");
523 523
 		goto error;
524 524
 	}
525 525
 	data = ptr;
... ...
@@ -641,7 +641,7 @@ int send_sms_as_sip( struct incame_sms *sms )
641 641
 	/* the rest of the sms (if any ;-)) is the body! */
642 642
 	sip_body.s = p;
643 643
 	sip_body.len = sms->ascii + sms->userdatalength - p;
644
-	/* let's trim out all \n an \r from begining */
644
+	/* let's trim out all \n an \r from beginning */
645 645
 	while ( sip_body.len && sip_body.s
646 646
 	&& (sip_body.s[0]=='\n' || sip_body.s[0]=='\r') ) {
647 647
 		sip_body.s++;
... ...
@@ -696,7 +696,7 @@ int send_sms_as_sip_scan_no(struct incame_sms *sms, char *to)
696 696
 	sip_body.len = sms->ascii + sms->userdatalength - sms->ascii;
697 697
 	sip_body.s = sms->ascii;	
698 698
 
699
-	/* let's trim out all \n an \r from begining */
699
+	/* let's trim out all \n an \r from beginning */
700 700
 	while (sip_body.len && sip_body.s && 
701 701
 	      (sip_body.s[0] == '\n' || sip_body.s[0] == '\r')) {
702 702
 	       sip_body.s++;
... ...
@@ -544,8 +544,8 @@ int init_tls_h(void)
544 544
 				" zlib compression: %s"
545 545
 				"\n %s\n",
546 546
 				SSLeay_version(SSLEAY_VERSION), ssl_version,
547
-				(lib_kerberos==1)?"on":(lib_kerberos==0)?"off":"unkown",
548
-				(lib_zlib==1)?"on":(lib_zlib==0)?"off":"unkown",
547
+				(lib_kerberos==1)?"on":(lib_kerberos==0)?"off":"unknown",
548
+				(lib_zlib==1)?"on":(lib_zlib==0)?"off":"unknown",
549 549
 				SSLeay_version(SSLEAY_CFLAGS));
550 550
 	if (lib_kerberos!=kerberos_support){
551 551
 		if (lib_kerberos!=-1){
... ...
@@ -85,7 +85,7 @@ int ul_db_tran_commit(ul_db_handle_t * handle, int working[]) {
85 85
 	for(i=0; i<DB_NUM; i++) {
86 86
 		if((handle->db[i].status == DB_ON) && (working[i])) {
87 87
 			if(submit_tran_commit(&handle->db[i].dbf, handle->db[i].dbh) < 0) {
88
-				LM_ERR("error while commiting "
88
+				LM_ERR("error while committing "
89 89
 				    "transaction on id %i, db %i.\n", handle->id, handle->db[i].no);
90 90
 				if(db_handle_error(handle, handle->db[i].no) < 0) {
91 91
 					LM_ERR("error during handling error "
... ...
@@ -210,7 +210,7 @@ void path_rr_callback(struct sip_msg *_m, str *r_param, void *cb_param)
210 210
 	param_t *params;
211 211
 			
212 212
 	if (parse_params(r_param, CLASS_CONTACT, &hooks, &params) != 0) {
213
-		LM_ERR("failed to parse route parametes\n");
213
+		LM_ERR("failed to parse route parameters\n");
214 214
 		return;
215 215
 	}
216 216
 
... ...
@@ -1707,7 +1707,7 @@ int pv_set_dsturi(struct sip_msg* msg, pv_param_t *param,
1707 1707
 	}
1708 1708
 	if(!(val->flags&PV_VAL_STR))
1709 1709
 	{
1710
-		LM_ERR("error - str value requred to set dst uri\n");
1710
+		LM_ERR("error - str value required to set dst uri\n");
1711 1711
 		goto error;
1712 1712
 	}
1713 1713
 	
... ...
@@ -316,7 +316,7 @@ static int load_pcres(int action)
316 316
 			i++;
317 317
 			/* Check if there are more patterns than the max value */
318 318
 			if (i >= max_groups) {
319
-				LM_ERR("max patterns exceded\n");
319
+				LM_ERR("max patterns exceeded\n");
320 320
 				fclose(f);
321 321
 				goto err;
322 322
 			}
... ...
@@ -328,7 +328,7 @@ static int load_pcres(int action)
328 328
 		
329 329
 		/* Check if the patter size is too big (aprox) */
330 330
 		if (strlen(patterns[i]) + strlen(line) >= group_max_size - 2) {
331
-			LM_ERR("pattern max file exceded\n");
331
+			LM_ERR("pattern max file exceeded\n");
332 332
 			fclose(f);
333 333
 			goto err;
334 334
 		}
... ...
@@ -192,7 +192,7 @@ int dispatcher_main_loop(void)
192 192
 	    continue;
193 193
 	 }
194 194
 	 if(errno==EBADF){
195
-	    LM_ERR("invalid file descriptor pased to poll (%s)\n",
195
+	    LM_ERR("invalid file descriptor passed to poll (%s)\n",
196 196
 				strerror(errno));
197 197
 	    return -1;/*??*/
198 198
 	 }
... ...
@@ -182,7 +182,7 @@ int db_load_domain_attrs(domain_t* d)
182 182
 	load_attrs_cmd->match[0].v.lstr = d->did;
183 183
 
184 184
 	if (db_exec(&res, load_attrs_cmd) < 0) {
185
-		ERR("Error while quering database\n");
185
+		ERR("Error while querying database\n");
186 186
 		return -1;
187 187
 	}
188 188
 
... ...
@@ -335,7 +335,7 @@ char* rval_type_name(enum rval_type type)
335 335
 		case RV_SEL:
336 336
 			return "select";
337 337
 	}
338
-	return "error_unkown_type";
338
+	return "error_unknown_type";
339 339
 }
340 340
 
341 341
 
... ...
@@ -1171,7 +1171,7 @@ int add_interfaces_via_netlink(char* if_name, int family, unsigned short port,
1171 1171
 			//if(! (ifaces[i].flags & IFF_UP) ) continue;
1172 1172
 
1173 1173
 			for(tmp = ifaces[i].addresses; tmp; tmp = tmp->next){
1174
-				LM_DBG("\t in add_iface_via_netlink Name %s Adress %s\n", ifaces[i].name, tmp->addr);
1174
+				LM_DBG("\t in add_iface_via_netlink Name %s Address %s\n", ifaces[i].name, tmp->addr);
1175 1175
 		                /* match family */
1176 1176
                                 if (family == tmp->family){
1177 1177
 					/* check if loopback */
... ...
@@ -1716,7 +1716,7 @@ error:
1716 1716
 						c->id, port);
1717 1717
 			break;
1718 1718
 		default:
1719
-			LOG(L_ERR, "ERROR: tcpconn_add_alias: unkown error %d\n", ret);
1719
+			LOG(L_ERR, "ERROR: tcpconn_add_alias: unknown error %d\n", ret);
1720 1720
 	}
1721 1721
 	return -1;
1722 1722
 }
... ...
@@ -54,7 +54,7 @@ Entirely deletes and than re-creates tables.
54 54
 Restores tables from a file.
55 55
 
56 56
 .SH NOTES
57
-Not all databases scripts suport all commands.
57
+Not all databases scripts support all commands.
58 58
 
59 59
 .SH FILES
60 60
 .PD 0