Skip to content

Commit

Permalink
rename old tcp_init function
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jan 22, 2015
1 parent e89c58e commit f435ce6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.c
Expand Up @@ -816,7 +816,7 @@ static int main_loop(void)
if (!tcp_disable){
for(si=tcp_listen; si; si=si->next){
/* same thing for tcp */
if (tcp_init(si)==-1) goto error;
if (tcp_init_old(si)==-1) goto error;
/* get first ipv4/ipv6 socket*/
if ((si->address.af==AF_INET)&
((sendipv4_tcp==0)||(sendipv4_tcp->flags&SI_IS_LO)))
Expand Down
2 changes: 1 addition & 1 deletion tcp_init.h
Expand Up @@ -31,7 +31,7 @@

int init_tcp();
void destroy_tcp();
int tcp_init(struct socket_info* sock_info);
int tcp_init_old(struct socket_info* sock_info);
int tcp_init_children(int *chd_rank, int *startup_done);
void tcp_main_loop();
void tcp_receive_loop(int unix_sock);
Expand Down
2 changes: 1 addition & 1 deletion tcp_main.c
Expand Up @@ -1307,7 +1307,7 @@ int tcp_send(struct socket_info* send_sock, int type, char* buf, unsigned len,



int tcp_init(struct socket_info* sock_info)
int tcp_init_old(struct socket_info* sock_info)
{
union sockaddr_union* addr;
int optval;
Expand Down

0 comments on commit f435ce6

Please sign in to comment.