summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-14 21:31:31 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-09-15 21:27:55 +1000
commit304b491a29430d3ef9f2e17d50e1f0e39d6abede (patch)
treeea28a08ad88bb3cb33c94352a2bb0a3557c870f0 /libs/ardour/session_state.cc
parent36d1d842df5925fe5cbc30083212043fe1877822 (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/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc4
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());