Use correct define names

The old name for MXS_STRERROR_BUFLEN was used in avrorouter.
This commit is contained in:
Markus Mäkelä 2017-02-01 09:55:32 +02:00
parent e64a641bcd
commit 712b720ef7

View File

@ -26,7 +26,7 @@ static bool maxavro_read_sync(FILE *file, uint8_t* sync)
if (ferror(file))
{
char err[STRERROR_BUFLEN];
char err[MXS_STRERROR_BUFLEN];
MXS_ERROR("Failed to read file sync marker: %d, %s", errno,
strerror_r(errno, err, sizeof(err)));
}
@ -98,7 +98,7 @@ bool maxavro_read_datablock_start(MAXAVRO_FILE* file)
if (pos == -1)
{
rval = false;
char err[STRERROR_BUFLEN];
char err[MXS_STRERROR_BUFLEN];
MXS_ERROR("Failed to read datablock start: %d, %s", errno,
strerror_r(errno, err, sizeof(err)));
}
@ -311,7 +311,7 @@ GWBUF* maxavro_file_binary_header(MAXAVRO_FILE *file)
{
if (ferror(file->file))
{
char err[STRERROR_BUFLEN];
char err[MXS_STRERROR_BUFLEN];
MXS_ERROR("Failed to read binary header: %d, %s", errno,
strerror_r(errno, err, sizeof(err)));
}
@ -334,7 +334,7 @@ GWBUF* maxavro_file_binary_header(MAXAVRO_FILE *file)
}
else
{
char err[STRERROR_BUFLEN];
char err[MXS_STRERROR_BUFLEN];
MXS_ERROR("Failed to read binary header: %d, %s", errno,
strerror_r(errno, err, sizeof(err)));
}