Skip to content

Commit

Permalink
core: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and miconda committed Dec 28, 2022
1 parent c181362 commit a8976a5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/core/counters.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/core/parser/parse_content.c
Expand Up @@ -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++;
Expand Down
6 changes: 3 additions & 3 deletions src/core/rvalue.c
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down Expand Up @@ -1532,7 +1532,7 @@ inline static int bool_rvstrop2( enum rval_expr_op op, long* res,


/** 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)
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/socket_info.c
Expand Up @@ -1786,7 +1786,7 @@ static int fix_hostname(str* name, struct ip_addr* address, str* address_str,

/* 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,
Expand All @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/core/tcp_main.c
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/core/tcp_options.c
Expand Up @@ -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),
Expand Down

0 comments on commit a8976a5

Please sign in to comment.