提交 3c82033e authored 作者: Stefan Knoblich's avatar Stefan Knoblich

FreeSWITCH: Fix warn-unused-result error in rtp_common_read().

strerror_r() returns the error message string (and expects you to use it).
Signed-off-by: 's avatarStefan Knoblich <stkn@openisdn.net>
上级 293429f7
...@@ -3310,8 +3310,8 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ ...@@ -3310,8 +3310,8 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
if (!SWITCH_STATUS_IS_BREAK(poll_status) && poll_status != SWITCH_STATUS_TIMEOUT) { if (!SWITCH_STATUS_IS_BREAK(poll_status) && poll_status != SWITCH_STATUS_TIMEOUT) {
char tmp[128] = ""; char tmp[128] = "";
strerror_r(poll_status, tmp, sizeof(tmp)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Poll failed with error: %d [%s]\n",
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Poll failed with error: %d [%s]\n", poll_status, tmp); poll_status, strerror_r(poll_status, tmp, sizeof(tmp)));
ret = -1; ret = -1;
goto end; goto end;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论