From 304b491a29430d3ef9f2e17d50e1f0e39d6abede Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 14 Sep 2016 21:31:31 +1000 Subject: [PATCH] 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). --- libs/ardour/session_state.cc | 4 ++-- 1 file 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());