Browse code

core: fix typos

Thanks, lintian
> I: kamailio: spelling-error-in-binary usr/sbin/kamailio lenght length
> I: kamailio: spelling-error-in-binary usr/sbin/kamailio orderd ordered
> I: kamailio: spelling-error-in-binary usr/sbin/kamailio uknown unknown

Victor Seva authored on 08/02/2018 08:53:43
Showing 7 changed files
... ...
@@ -342,7 +342,7 @@ char* b58_decode(char *outb, int *outbszp, char *b58, int b58sz)
342 342
 /**
343 343
  * encode raw data (of size binsz) into base58 format stored in b58
344 344
  *   - *b58sz gives the size of b58 buffer
345
- *   - *b58sz is updated to the lenght of result
345
+ *   - *b58sz is updated to the length of result
346 346
  *   - b58 is 0-terminated
347 347
  *   - return NULL on failure or b58
348 348
  */
... ...
@@ -249,9 +249,9 @@ extern unsigned char _bx_ub64[0x54+1];
249 249
 
250 250
 
251 251
 
252
-/*! \brief lenght needed for encoding l bytes */
252
+/*! \brief length needed for encoding l bytes */
253 253
 #define base16_enc_len(l) (l*2)
254
-/*! \brief maximum lenght needed for decoding l bytes */
254
+/*! \brief maximum length needed for decoding l bytes */
255 255
 #define base16_max_dec_len(l) (l/2)
256 256
 /*! \brief actual space needed for decoding a string b of size l */
257 257
 #define base16_dec_len(b, l) base16_max_dec_len(l)
... ...
@@ -4365,7 +4365,7 @@ int dns_cache_add_record(unsigned short type,
4365 4365
 					);
4366 4366
 				}
4367 4367
 				if (!rr_p) {
4368
-					LM_ERR("Failed to correct the orderd list of SRV resource records\n");
4368
+					LM_ERR("Failed to correct the ordered list of SRV resource records\n");
4369 4369
 					goto error;
4370 4370
 				}
4371 4371
 
... ...
@@ -155,7 +155,7 @@ struct dns_hash_entry{
155 155
 	unsigned char ent_flags; /* entry flags: unresolvable/permanent */
156 156
 	unsigned char name_len; /* can be maximum 255 bytes */
157 157
 	char name[1]; /* variable length, name, null terminated
158
-	                 (actual lenght = name_len +1)*/
158
+	                 (actual length = name_len +1)*/
159 159
 };
160 160
 
161 161
 
... ...
@@ -371,7 +371,7 @@ static int parse_sdp_session(str *sdp_body, int session_num, str *cnt_disp, sdp_
371 371
 	str fmtp_string;
372 372
 	str remote_candidates = {"a:remote-candidates:", 20};
373 373
 
374
-	/* hook the start and lenght of sdp body inside structure
374
+	/* hook the start and length of sdp body inside structure
375 375
 	 * - shorcut useful for multi-part bodies and sdp operations
376 376
 	 */
377 377
 	_sdp->text = *sdp_body;
... ...
@@ -469,7 +469,7 @@ int extract_mediaip(str *body, str *mediaip, int *pf, char *line)
469 469
 		return -1;
470 470
 	}
471 471
 	/* safety checks:
472
-	 * - for lenght, at least 6: ' IP[4|6] x...'
472
+	 * - for length, at least 6: ' IP[4|6] x...'
473 473
 	 * - white space after
474 474
 	 */
475 475
 	if(cp + 6 > mediaip->s + mediaip->len && cp[4]!=' ') {
... ...
@@ -1176,7 +1176,7 @@ static int tcp_read_ws(struct tcp_connection *c, int* read_flags)
1176 1176
 		   handled to 2^32 - which should be plenty for SIP! */
1177 1177
 		if((p[pos] & 0xff)!=0 || (p[pos + 1] & 0xff)!=0
1178 1178
 				|| (p[pos + 2] & 0xff)!=0 || (p[pos + 3] & 0xff)!=0) {
1179
-			LM_WARN("advertised lenght is too large (more than 2^32)\n");
1179
+			LM_WARN("advertised length is too large (more than 2^32)\n");
1180 1180
 			goto skip;
1181 1181
 		}
1182 1182
 		len = ((p[pos + 4] & 0xff) << 24)
... ...
@@ -1194,9 +1194,9 @@ static int tcp_read_ws(struct tcp_connection *c, int* read_flags)
1194 1194
 		pos += 4;
1195 1195
 	}
1196 1196
 
1197
-	/* check if advertised lenght fits in read buffer */
1197
+	/* check if advertised length fits in read buffer */
1198 1198
 	if(len>=r->b_size) {
1199
-		LM_WARN("advertised lenght (%u) greater than buffer size (%u)\n",
1199
+		LM_WARN("advertised length (%u) greater than buffer size (%u)\n",
1200 1200
 				len, r->b_size);
1201 1201
 		goto skip;
1202 1202
 	}
... ...
@@ -1282,9 +1282,9 @@ static int tcp_read_hep3(struct tcp_connection *c, int* read_flags)
1282 1282
 
1283 1283
 	len = ((uint32_t)(p[4] & 0xff) <<  8) + (p[5] & 0xff);
1284 1284
 
1285
-	/* check if advertised lenght fits in read buffer */
1285
+	/* check if advertised length fits in read buffer */
1286 1286
 	if(len>=r->b_size) {
1287
-		LM_WARN("advertised lenght (%u) greater than buffer size (%u)\n",
1287
+		LM_WARN("advertised length (%u) greater than buffer size (%u)\n",
1288 1288
 				len, r->b_size);
1289 1289
 		goto skip;
1290 1290
 	}
... ...
@@ -1878,7 +1878,7 @@ read_error:
1878 1878
 						fm->fd, fm->type, fm->data);
1879 1879
 			goto error;
1880 1880
 		default:
1881
-			LM_CRIT("uknown fd type %d\n", fm->type); 
1881
+			LM_CRIT("unknown fd type %d\n", fm->type);
1882 1882
 			goto error;
1883 1883
 	}
1884 1884