Use correct define names
The old name for MXS_STRERROR_BUFLEN was used in avrorouter.
This commit is contained in:
@ -26,7 +26,7 @@ static bool maxavro_read_sync(FILE *file, uint8_t* sync)
|
|||||||
|
|
||||||
if (ferror(file))
|
if (ferror(file))
|
||||||
{
|
{
|
||||||
char err[STRERROR_BUFLEN];
|
char err[MXS_STRERROR_BUFLEN];
|
||||||
MXS_ERROR("Failed to read file sync marker: %d, %s", errno,
|
MXS_ERROR("Failed to read file sync marker: %d, %s", errno,
|
||||||
strerror_r(errno, err, sizeof(err)));
|
strerror_r(errno, err, sizeof(err)));
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ bool maxavro_read_datablock_start(MAXAVRO_FILE* file)
|
|||||||
if (pos == -1)
|
if (pos == -1)
|
||||||
{
|
{
|
||||||
rval = false;
|
rval = false;
|
||||||
char err[STRERROR_BUFLEN];
|
char err[MXS_STRERROR_BUFLEN];
|
||||||
MXS_ERROR("Failed to read datablock start: %d, %s", errno,
|
MXS_ERROR("Failed to read datablock start: %d, %s", errno,
|
||||||
strerror_r(errno, err, sizeof(err)));
|
strerror_r(errno, err, sizeof(err)));
|
||||||
}
|
}
|
||||||
@ -311,7 +311,7 @@ GWBUF* maxavro_file_binary_header(MAXAVRO_FILE *file)
|
|||||||
{
|
{
|
||||||
if (ferror(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,
|
MXS_ERROR("Failed to read binary header: %d, %s", errno,
|
||||||
strerror_r(errno, err, sizeof(err)));
|
strerror_r(errno, err, sizeof(err)));
|
||||||
}
|
}
|
||||||
@ -334,7 +334,7 @@ GWBUF* maxavro_file_binary_header(MAXAVRO_FILE *file)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char err[STRERROR_BUFLEN];
|
char err[MXS_STRERROR_BUFLEN];
|
||||||
MXS_ERROR("Failed to read binary header: %d, %s", errno,
|
MXS_ERROR("Failed to read binary header: %d, %s", errno,
|
||||||
strerror_r(errno, err, sizeof(err)));
|
strerror_r(errno, err, sizeof(err)));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user