From 7e2378936448f5392844130bb7b325834ab06e4e Mon Sep 17 00:00:00 2001 From: Esa Korhonen Date: Mon, 13 Feb 2017 14:46:43 +0200 Subject: [PATCH] Fix one last compilation error Fix one ignored return value in Avro, caused compilation to fail. --- server/modules/routing/avrorouter/avro_file.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/modules/routing/avrorouter/avro_file.c b/server/modules/routing/avrorouter/avro_file.c index 7341d671a..1bcf3a2aa 100644 --- a/server/modules/routing/avrorouter/avro_file.c +++ b/server/modules/routing/avrorouter/avro_file.c @@ -519,10 +519,9 @@ avro_binlog_end_t avro_read_all_events(AVRO_INSTANCE *router) case -1: { char err_msg[BLRM_STRERROR_R_MSG_SIZE + 1] = ""; - strerror_r(errno, err_msg, BLRM_STRERROR_R_MSG_SIZE); - MXS_ERROR("Failed to read binlog file %s at position %llu" - " (%s).", router->binlog_name, - pos, err_msg); + MXS_ERROR("Failed to read binlog file %s at position %llu (%s).", + router->binlog_name, pos, + strerror_r(errno, err_msg, sizeof(err_msg))); if (errno == EBADF) MXS_ERROR("Bad file descriptor in read binlog for file %s"