提交 af3be7b2 authored 作者: Andrew Thompson's avatar Andrew Thompson

Silence a silly warning about ignored return values

上级 48cf8f99
......@@ -82,7 +82,9 @@ void ei_link(listener_t *listener, erlang_pid * from, erlang_pid * to)
#ifdef WIN32
send(listener->sockfd, msgbuf, index, 0);
#else
write(listener->sockfd, msgbuf, index);
if (write(listener->sockfd, msgbuf, index) == -1) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to link to process on %s\n", listener->peer_nodename);
}
#endif
switch_mutex_unlock(listener->sock_mutex);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论