2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

Replace all uses of strerror() by ovs_strerror(), for thread safety.

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2013-06-24 10:54:49 -07:00
parent 5fcbed7479
commit 10a89ef04d
56 changed files with 298 additions and 269 deletions

View File

@@ -616,7 +616,7 @@ get_cwd(void)
int error = errno;
free(buf);
if (error != ERANGE) {
VLOG_WARN("getcwd failed (%s)", strerror(error));
VLOG_WARN("getcwd failed (%s)", ovs_strerror(error));
return NULL;
}
size *= 2;
@@ -754,7 +754,8 @@ follow_symlinks(const char *filename)
linkname = xreadlink(fn);
if (!linkname) {
VLOG_WARN("%s: readlink failed (%s)", filename, strerror(errno));
VLOG_WARN("%s: readlink failed (%s)",
filename, ovs_strerror(errno));
return fn;
}