diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-09-14 21:31:31 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2016-09-15 21:27:55 +1000 |
commit | 304b491a29430d3ef9f2e17d50e1f0e39d6abede (patch) | |
tree | ea28a08ad88bb3cb33c94352a2bb0a3557c870f0 /libs | |
parent | 36d1d842df5925fe5cbc30083212043fe1877822 (diff) |
Use g_strerror() instead of ::strerror() in Session::cleanup_sources
The error is generated by a glib function so use the glib version of this
function(it also consistent with usage in the rest the file).
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_state.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index f518d4e502..5729c889bd 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -3307,7 +3307,7 @@ Session::cleanup_sources (CleanupReport& rep) if (0 == g_stat ((*x).c_str(), &statbuf)) { if (::g_rename ((*x).c_str(), newpath.c_str()) != 0) { - error << string_compose (_("cannot rename unused file source from %1 to %2 (%3)"), (*x), newpath, strerror (errno)) << endmsg; + error << string_compose (_("cannot rename unused file source from %1 to %2 (%3)"), (*x), newpath, g_strerror (errno)) << endmsg; continue; } @@ -3324,7 +3324,7 @@ Session::cleanup_sources (CleanupReport& rep) if (Glib::file_test (peakpath.c_str(), Glib::FILE_TEST_EXISTS)) { if (::g_unlink (peakpath.c_str()) != 0) { error << string_compose (_("cannot remove peakfile %1 for %2 (%3)"), - peakpath, _path, strerror (errno)) + peakpath, _path, g_strerror (errno)) << endmsg; /* try to back out */ ::g_rename (newpath.c_str(), _path.c_str()); |