diff options
-rw-r--r-- | libs/ardour/file_source.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc index 37e156ec8f..32f8a1b124 100644 --- a/libs/ardour/file_source.cc +++ b/libs/ardour/file_source.cc @@ -210,7 +210,7 @@ FileSource::move_to_trash (const string& trash_dir_name) if (::g_rename (_path.c_str(), newpath.c_str()) != 0) { PBD::error << string_compose ( _("cannot rename file source from %1 to %2 (%3)"), - _path, newpath, strerror (errno)) << endmsg; + _path, newpath, g_strerror (errno)) << endmsg; return -1; } @@ -486,7 +486,7 @@ FileSource::find_2X (Session& s, DataType type, const string& path, bool must_ex if (must_exist) { error << string_compose( _("Filesource: cannot find required file (%1): %2"), - path, strerror (errno)) << endmsg; + path, g_strerror (errno)) << endmsg; goto out; } @@ -494,7 +494,7 @@ FileSource::find_2X (Session& s, DataType type, const string& path, bool must_ex if (errno != ENOENT) { error << string_compose( _("Filesource: cannot check for existing file (%1): %2"), - path, strerror (errno)) << endmsg; + path, g_strerror (errno)) << endmsg; goto out; } #endif @@ -595,7 +595,7 @@ FileSource::rename (const string& newpath) if (Glib::file_test (oldpath.c_str(), Glib::FILE_TEST_EXISTS)) { /* rename only needed if file exists on disk */ if (::g_rename (oldpath.c_str(), newpath.c_str()) != 0) { - error << string_compose (_("cannot rename file %1 to %2 (%3)"), oldpath, newpath, strerror(errno)) << endmsg; + error << string_compose (_("cannot rename file %1 to %2 (%3)"), oldpath, newpath, g_strerror(errno)) << endmsg; return -1; } } |