Дилян Палаузов hace 2 años
padre
commit
a8976a5ad7

+ 3 - 3
src/core/counters.c

@@ -295,7 +295,7 @@ static struct grp_record* grp_hash_lookup(str* group)
 
 
 /** lookup a group and if not found create a new group record.
- * @return pointer to grp_record on succes, 0 on failure ( not found and
+ * @return pointer to grp_record on success, 0 on failure ( not found and
  *  failed to create new group record).
  */
 static struct grp_record* grp_hash_get_create(str* group)
@@ -456,7 +456,7 @@ static struct counter_record* cnt_hash_lookup(str* group, str* name)
 
 
 /** lookup a counter and if not found create a new counter record.
- * @return pointer to counter_record on succes, 0 on failure ( not found and
+ * @return pointer to counter_record on success, 0 on failure ( not found and
  *  failed to create new group record).
  */
 static struct counter_record* cnt_hash_get_create(
@@ -489,7 +489,7 @@ static struct counter_record* cnt_hash_get_create(
  * @param doc       - description/documentation string.
  * @param reg_flags - register flags: 1 - don't fail if counter already
  *                    registered (act like counter_lookup(handle, group, name).
- * @return 0 on succes, < 0 on error (-1 not init or malloc error, -2 already
+ * @return 0 on success, < 0 on error (-1 not init or malloc error, -2 already
  *         registered (and register_flags & 1 == 0).
  */
 int counter_register(	counter_handle_t* handle, const char* group,

+ 1 - 1
src/core/parser/parse_content.c

@@ -374,7 +374,7 @@ char* decode_mime_type(char* const start, const char* const end,
 		*mime_type |= type_candidate;;
 	}
 
-	/* now its possible to have some spaces */
+	/* now it is possible to have some spaces */
 	while ( p<end && (*p==' ' || *p=='\t' ||
 	(*p=='\n' && (*(p+1)==' '||*(p+1)=='\t')) ))
 		p++;

+ 3 - 3
src/core/rvalue.c

@@ -1372,7 +1372,7 @@ struct rvalue* rval_convert(struct run_act_ctx* h, struct sip_msg* msg,
 
 
 /** integer operation: *res= op v.
- * @return 0 on succes, \<0 on error
+ * @return 0 on success, \<0 on error
  */
 inline static int long_longop1(long* res, enum rval_expr_op op, long v)
 {
@@ -1399,7 +1399,7 @@ inline static int long_longop1(long* res, enum rval_expr_op op, long v)
 
 
 /** integer operation: *res= v1 op v2
- * @return 0 on succes, \<0 on error
+ * @return 0 on success, \<0 on error
  */
 inline static int long_longop2(long* res, enum rval_expr_op op, long v1, long v2)
 {
@@ -1532,7 +1532,7 @@ error:
 
 
 /** integer returning operation on string: *res= op str (returns integer)
- * @return 0 on succes, \<0 on error
+ * @return 0 on success, \<0 on error
  */
 inline static int long_strop1(long* res, enum rval_expr_op op, str* s1)
 {

+ 2 - 2
src/core/socket_info.c

@@ -1786,7 +1786,7 @@ error:
 
 /* append new elements to a socket_info list after "list"
  * each element is created  from addr_info_lst + port, protocol and flags
- * return 0 on succes, -1 on error
+ * return 0 on success, -1 on error
  */
 static int addr_info_to_si_lst(struct addr_info* ai_lst, unsigned short port,
 								char proto, char *usename,
@@ -1808,7 +1808,7 @@ static int addr_info_to_si_lst(struct addr_info* ai_lst, unsigned short port,
 
 /* insert new elements to a socket_info list after "el",
  * each element is created from addr_info_lst + port, * protocol and flags
- * return 0 on succes, -1 on error
+ * return 0 on success, -1 on error
  */
 static int addr_info_to_si_lst_after(struct addr_info* ai_lst,
 										unsigned short port,

+ 3 - 3
src/core/tcp_main.c

@@ -3644,7 +3644,7 @@ inline static int handle_tcp_child(struct tcp_child* tcp_c, int fd_i)
 			/* should never happen */
 			LM_CRIT("too few bytes received (%d)\n", bytes );
 			bytes=0; /* something was read so there is no error; otoh if
-					  receive_fd returned less then requested => the receive
+					  receive_fd returned less than requested => the receive
 					  buffer is empty => no more io queued on this fd */
 			goto end;
 		}
@@ -3883,7 +3883,7 @@ inline static int handle_ser_child(struct process_table* p, int fd_i)
 			/* should never happen */
 			LM_CRIT("too few bytes received (%d)\n", bytes );
 			ret=0; /* something was read so there is no error; otoh if
-					  receive_fd returned less then requested => the receive
+					  receive_fd returned less than requested => the receive
 					  buffer is empty => no more io queued on this fd */
 			goto end;
 		}
@@ -4416,7 +4416,7 @@ static inline int handle_new_connect(struct socket_info* si)
  * params: tcpconn - pointer to the tcp_connection for which we have an io ev.
  *         fd_i    - index in the fd_array table (needed for delete)
  * returns:  handle_* return convention, but on success it always returns 0
- *           (because it's one-shot, after a succesful execution the fd is
+ *           (because it's one-shot, after a successful execution the fd is
  *            removed from tcp_main's watch fd list and passed to a child =>
  *            tcp_main is not interested in further io events that might be
  *            queued for this fd)

+ 1 - 1
src/core/tcp_options.c

@@ -393,7 +393,7 @@ void tcp_options_get(struct cfg_group_tcp* t)
 
 
 /** register tcp config into the configuration framework.
- *  @return 0 on succes, -1 on error*/
+ *  @return 0 on success, -1 on error*/
 int tcp_register_cfg()
 {
 	if (cfg_declare("tcp", tcp_cfg_def, &tcp_default_cfg, cfg_sizeof(tcp),