[vlc-commits] XDG: use vlc_strerror_c()

Rémi Denis-Courmont git at videolan.org
Sun Dec 29 15:16:32 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 29 15:58:35 2013 +0200| [eff30cdfbc1d427c325c9f0a05ac4a869f820aa3] | committer: Rémi Denis-Courmont

XDG: use vlc_strerror_c()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eff30cdfbc1d427c325c9f0a05ac4a869f820aa3
---

 modules/misc/inhibit/xdg.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/misc/inhibit/xdg.c b/modules/misc/inhibit/xdg.c
index 191568a..4b94633 100644
--- a/modules/misc/inhibit/xdg.c
+++ b/modules/misc/inhibit/xdg.c
@@ -26,7 +26,6 @@
 #include <vlc_plugin.h>
 #include <vlc_inhibit.h>
 #include <assert.h>
-#include <errno.h>
 #include <signal.h>
 #include <spawn.h>
 #include <sys/wait.h>
@@ -69,10 +68,8 @@ static void Timer (void *data)
         while (waitpid (pid, &status, 0) == -1);
     }
     else
-    {
-        errno = err;
-        msg_Warn (ih, "error starting xdg-screensaver: %m");
-    }
+        msg_Warn (ih, "error starting xdg-screensaver: %s",
+                  vlc_strerror_c(err));
 }
 
 static void Inhibit (vlc_inhibit_t *ih, unsigned mask)



More information about the vlc-commits mailing list