提交 7b656871 authored 作者: Andrew Thompson's avatar Andrew Thompson

Fix unused var

上级 618ea0f2
...@@ -64,7 +64,6 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to) ...@@ -64,7 +64,6 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to)
char msgbuf[2048]; char msgbuf[2048];
char *s; char *s;
int index = 0; int index = 0;
int ret;
index = 5; /* max sizes: */ index = 5; /* max sizes: */
ei_encode_version(msgbuf, &index); /* 1 */ ei_encode_version(msgbuf, &index); /* 1 */
...@@ -81,9 +80,9 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to) ...@@ -81,9 +80,9 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to)
switch_mutex_lock(listener->sock_mutex); switch_mutex_lock(listener->sock_mutex);
#ifdef WIN32 #ifdef WIN32
ret = send(listener->sockfd, msgbuf, index, 0); send(listener->sockfd, msgbuf, index, 0);
#else #else
ret = write(listener->sockfd, msgbuf, index); write(listener->sockfd, msgbuf, index);
#endif #endif
switch_mutex_unlock(listener->sock_mutex); switch_mutex_unlock(listener->sock_mutex);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论