Pārlūkot izejas kodu

rtpengine: spell fixes in the comments

Daniel-Constantin Mierla 2 gadi atpakaļ
vecāks
revīzija
bd497411f2

+ 1 - 1
src/modules/rtpengine/bencode.h

@@ -220,7 +220,7 @@ struct iovec *bencode_iovec(bencode_item_t *root, int *cnt, unsigned int head, u
 
 /* Similar to bencode_iovec(), but instead returns the encoded document as a null-terminated string.
  * Memory for the string is allocated from the same bencode_buffer_t object as the "root" object
- * was allocated from. If "len" is a non-NULL pointer, the length of the genrated string is returned
+ * was allocated from. If "len" is a non-NULL pointer, the length of the generated string is returned
  * in *len. This is important if the encoded document contains binary data, in which case null
  * termination cannot be trusted. The returned string is freed when the corresponding
  * bencode_buffer_t object is destroyed. */

+ 2 - 2
src/modules/rtpengine/rtpengine.c

@@ -1147,8 +1147,8 @@ int add_rtpengine_socks(struct rtpp_set *rtpp_list, char *rtpengine,
 }
 
 
-/* 0 - succes
- * -1 - erorr
+/* 0 - success
+ * -1 - error
  * */
 static int rtpengine_add_rtpengine_set(char * rtp_proxies, unsigned int weight, int disabled, unsigned int ticks)
 {

+ 2 - 2
src/modules/rtpengine/rtpengine_funcs.c

@@ -178,8 +178,8 @@ int extract_body(struct sip_msg *msg, str *body )
 
 	/*
 	 * Better use the content-len value - no need of any explicit
-	 * parcing as get_body() parsed all headers and Conten-Length
-	 * body header is automaticaly parsed when found.
+	 * parsing as get_body() parsed all headers and Content-Length
+	 * body header is automatically parsed when found.
 	 */
 	if (msg->content_length==0) {
 		LM_ERR("failed to get the content length in message\n");