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:
@ -179,9 +179,8 @@ int externcmd_execute(EXTERNCMD* cmd)
|
||||
|
||||
if (pid < 0)
|
||||
{
|
||||
char errbuf[MXS_STRERROR_BUFLEN];
|
||||
MXS_ERROR("Failed to execute command '%s', fork failed: [%d] %s",
|
||||
cmd->argv[0], errno, strerror_r(errno, errbuf, sizeof(errbuf)));
|
||||
cmd->argv[0], errno, mxs_strerror(errno));
|
||||
rval = -1;
|
||||
}
|
||||
else if (pid == 0)
|
||||
|
Reference in New Issue
Block a user