Fix unused var

This commit is contained in:
Andrew Thompson 2011-08-20 23:03:17 -04:00
parent 618ea0f2c8
commit 7b656871f3
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}