]> git.sesse.net Git - vlc/commitdiff
XDG: use vlc_strerror_c()
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Dec 2013 13:58:35 +0000 (15:58 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 29 Dec 2013 13:59:58 +0000 (15:59 +0200)
modules/misc/inhibit/xdg.c

index 191568a9bb1077f7909b8694a5f0ad213ccf5cda..4b9463368f3886ec57ac9d101dda87f1cbf6d408 100644 (file)
@@ -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)