Skip to content

Commit

Permalink
core: Fix typos
Browse files Browse the repository at this point in the history
(cherry picked from commit 5dd8f0a)
  • Loading branch information
btriller authored and miconda committed May 16, 2022
1 parent 6051768 commit d7fcb31
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/core/atomic/atomic_mips2.h
Expand Up @@ -186,7 +186,7 @@

/* %0=var, %1=*var, %2=new, %3=old :
* ret=*var; if *var==old then *var=new; return ret
* => if succesfull (changed var to new) ret==old */
* => if successful (changed var to new) ret==old */
#define ATOMIC_CMPXCHG_DECL(NAME, P_TYPE) \
inline static P_TYPE atomic_##NAME##_##P_TYPE (volatile P_TYPE *var, \
P_TYPE old, \
Expand Down
4 changes: 2 additions & 2 deletions src/core/dns_cache.c
Expand Up @@ -2581,9 +2581,9 @@ struct hostent* dns_srv_sip_resolvehost(str* name, unsigned short* port,
* tried - bitmap used to keep track of the already tried records
* (no more then sizeof(tried)*8 valid records are
* ever walked
* srv_name - if succesfull, it will be set to the selected record
* srv_name - if successful, it will be set to the selected record
* srv name (naptr repl.)
* proto - if succesfull it will be set to the selected record
* proto - if successful it will be set to the selected record
* protocol
* returns 0 if no more records found or a pointer to the selected record
* and sets protocol and srv_name
Expand Down
2 changes: 1 addition & 1 deletion src/core/forward.c
Expand Up @@ -286,7 +286,7 @@ struct socket_info* get_send_socket2(struct socket_info* force_send_socket,
#ifdef USE_TCP
case PROTO_WS:
case PROTO_TCP:
/* on tcp just use the "main address", we don't really now the
/* on tcp just use the "main address", we don't really know the
* sending address (we can find it out, but we'll need also to see
* if we listen on it, and if yes on which port -> too complicated*/
switch(to->s.sa_family){
Expand Down
4 changes: 2 additions & 2 deletions src/core/resolve.c
Expand Up @@ -1388,9 +1388,9 @@ struct hostent* srv_sip_resolvehost(str* name, int zt, unsigned short* port,
* tried - bitmap used to keep track of the already tried records
* (no more then sizeof(tried)*8 valid records are
* ever walked
* srv_name - if succesfull, it will be set to the selected record
* srv_name - if successful, it will be set to the selected record
* srv name (naptr repl.)
* proto - if succesfull it will be set to the selected record
* proto - if successful it will be set to the selected record
* protocol
* returns 0 if no more records found or a pointer to the selected record
* and sets protocol and srv_name
Expand Down
10 changes: 5 additions & 5 deletions src/core/tcp_main.c
Expand Up @@ -4301,7 +4301,7 @@ static inline int handle_new_connect(struct socket_info* si)
cfg_get(tcp, tcp_cfg, max_connections));
tcp_safe_close(new_sock);
TCP_STATS_LOCAL_REJECT();
return 1; /* success, because the accept was succesfull */
return 1; /* success, because the accept was successful */
}
if (unlikely(si->proto==PROTO_TLS)) {
if (unlikely(*tls_connections_no>=cfg_get(tcp, tcp_cfg, max_tls_connections))){
Expand All @@ -4310,13 +4310,13 @@ static inline int handle_new_connect(struct socket_info* si)
cfg_get(tcp, tcp_cfg, max_tls_connections));
tcp_safe_close(new_sock);
TCP_STATS_LOCAL_REJECT();
return 1; /* success, because the accept was succesfull */
return 1; /* success, because the accept was successful */
}
}
if (unlikely(init_sock_opt_accept(new_sock)<0)){
LM_ERR("init_sock_opt failed\n");
tcp_safe_close(new_sock);
return 1; /* success, because the accept was succesfull */
return 1; /* success, because the accept was successful */
}
(*tcp_connections_no)++;
if (unlikely(si->proto==PROTO_TLS))
Expand Down Expand Up @@ -4352,7 +4352,7 @@ static inline int handle_new_connect(struct socket_info* si)
LM_ERR("duplicated connection by local and remote addresses\n");
_tcpconn_free(tcpconn);
tcp_safe_close(new_sock);
return 1; /* success, because the accept was succesfull */
return 1; /* success, because the accept was successful */
}
}
tcpconn->flags|=F_CONN_PASSIVE;
Expand Down Expand Up @@ -4394,7 +4394,7 @@ static inline int handle_new_connect(struct socket_info* si)
if (unlikely(si->proto==PROTO_TLS))
(*tls_connections_no)--;
}
return 1; /* accept() was succesfull */
return 1; /* accept() was successful */
}


Expand Down

0 comments on commit d7fcb31

Please sign in to comment.