From: Paul Brossier Date: Sat, 22 Dec 2018 23:02:55 +0000 (+0100) Subject: [sink_flac] use AUBIO_STRERR X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=6245b5282b6a39b54429dcbcc48b00d5d8c32c24;p=aubio.git [sink_flac] use AUBIO_STRERR --- diff --git a/src/io/sink_flac.c b/src/io/sink_flac.c index 0a53b8f0..a0ae795c 100644 --- a/src/io/sink_flac.c +++ b/src/io/sink_flac.c @@ -34,9 +34,6 @@ #include #include -#include // strerror -#include // errno - #define MAX_WRITE_SIZE 4096 // swap host to little endian @@ -145,7 +142,7 @@ uint_t aubio_sink_flac_open(aubio_sink_flac_t *s) s->fid = fopen((const char *)s->path, "wb"); if (!s->fid) { - AUBIO_ERR("sink_flac: failed opening %s, %s\n", s->path, strerror(errno)); + AUBIO_STRERR("sink_flac: Failed opening %s (%s)\n", s->path, errorstr); return AUBIO_FAIL; } @@ -347,8 +344,7 @@ uint_t aubio_sink_flac_close (aubio_sink_flac_t *s) } if (s->fid && fclose(s->fid)) { - AUBIO_ERR("sink_flac: Error closing file %s (%s)\n", - s->path, strerror(errno)); + AUBIO_STRERR("sink_flac: Error closing file %s (%s)\n", s->path, errorstr); ret &= AUBIO_FAIL; } s->fid = NULL;