From 6245b5282b6a39b54429dcbcc48b00d5d8c32c24 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 23 Dec 2018 00:02:55 +0100 Subject: [PATCH] [sink_flac] use AUBIO_STRERR --- src/io/sink_flac.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; -- 2.11.0