Replace strerror_r with mxs_strerror
The mxs_strerror function requires no local buffer, thus making it simpler and cleaner to use.
This commit is contained in:
@ -94,9 +94,7 @@ gwbuf_alloc(unsigned int size)
|
||||
retblock:
|
||||
if (rval == NULL)
|
||||
{
|
||||
char errbuf[MXS_STRERROR_BUFLEN];
|
||||
MXS_ERROR("Memory allocation failed due to %s.",
|
||||
strerror_r(errno, errbuf, sizeof(errbuf)));
|
||||
MXS_ERROR("Memory allocation failed due to %s.", mxs_strerror(errno));
|
||||
}
|
||||
#if defined(BUFFER_TRACE)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user