From 3b5b59e693f5c36568055427ea097c4ba40b4913 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Tue, 31 Jul 2012 01:58:48 +0200 Subject: [PATCH] Revert "FreeSWITCH: Fix warn-unused-result error in rtp_common_read()." *sigh* of course there are two versions of strerror_r(): char *strerror_r() - GNU int strerror_r() - non-GNU Revert and back the drawing board... This reverts commit 3c82033e532081fb42678a2ba297f9bd32b94635. --- src/switch_rtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 867f600f47..f0749d8087 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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) { char tmp[128] = ""; - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Poll failed with error: %d [%s]\n", - poll_status, strerror_r(poll_status, tmp, sizeof(tmp))); + 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", poll_status, tmp); ret = -1; goto end; }