diff --git a/src/mod/event_handlers/mod_erlang_event/ei_helpers.c b/src/mod/event_handlers/mod_erlang_event/ei_helpers.c index db4f7780e0..d7d0952ffc 100644 --- a/src/mod/event_handlers/mod_erlang_event/ei_helpers.c +++ b/src/mod/event_handlers/mod_erlang_event/ei_helpers.c @@ -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); }