Fix unused var
This commit is contained in:
parent
618ea0f2c8
commit
7b656871f3
|
@ -64,7 +64,6 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to)
|
|||
char msgbuf[2048];
|
||||
char *s;
|
||||
int index = 0;
|
||||
int ret;
|
||||
|
||||
index = 5; /* max sizes: */
|
||||
ei_encode_version(msgbuf, &index); /* 1 */
|
||||
|
@ -81,9 +80,9 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to)
|
|||
|
||||
switch_mutex_lock(listener->sock_mutex);
|
||||
#ifdef WIN32
|
||||
ret = send(listener->sockfd, msgbuf, index, 0);
|
||||
send(listener->sockfd, msgbuf, index, 0);
|
||||
#else
|
||||
ret = write(listener->sockfd, msgbuf, index);
|
||||
write(listener->sockfd, msgbuf, index);
|
||||
#endif
|
||||
switch_mutex_unlock(listener->sock_mutex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue