ftmod_wanpipe.c:
Remove myerrno variable in wanpipe_read(),
snprintf does not set errno (according to the manpage),
so no need to save it (without even using it later).
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
static FIO_READ_FUNCTION(wanpipe_read)
{
int rx_len = 0;
- int myerrno = 0;
wp_tdm_api_rx_hdr_t hdrframe;
memset(&hdrframe, 0, sizeof(hdrframe));
}
if (rx_len < 0) {
- myerrno = errno;
snprintf(ftdmchan->last_error, sizeof(ftdmchan->last_error), "%s", strerror(errno));
ftdm_log_chan(ftdmchan, FTDM_LOG_WARNING, "Failed to read from sangoma device: %s (%d)\n", strerror(errno), rx_len);
return FTDM_FAIL;