Skip to content

Commit

Permalink
tls_mgm: make unused functions inline
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed May 28, 2019
1 parent ad15924 commit b1b6f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tls_mgm/tls_conn_server.h
Expand Up @@ -507,7 +507,7 @@ static int tls_connect(struct tcp_connection *c, short *poll_events, trace_dest
* does not transit a connection into S_CONN_OK then tcp layer would not
* call tcp_read
*/
static int tls_fix_read_conn(struct tcp_connection *c, trace_dest t_dst)
static inline int tls_fix_read_conn(struct tcp_connection *c, trace_dest t_dst)
{
/*
* no lock acquired
Expand Down Expand Up @@ -594,7 +594,7 @@ static int tls_write(struct tcp_connection *c, int fd, const void *buf,
/*
* fixme: probably does not work correctly
*/
static int tls_blocking_write(struct tcp_connection *c, int fd, const char *buf,
static inline int tls_blocking_write(struct tcp_connection *c, int fd, const char *buf,
size_t len, struct tls_mgm_binds *api, trace_dest t_dst)
{
#define MAX_SSL_RETRIES 32
Expand Down

0 comments on commit b1b6f81

Please sign in to comment.