Commit eff30cdf authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XDG: use vlc_strerror_c()

parent a63ffa2b
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_inhibit.h> #include <vlc_inhibit.h>
#include <assert.h> #include <assert.h>
#include <errno.h>
#include <signal.h> #include <signal.h>
#include <spawn.h> #include <spawn.h>
#include <sys/wait.h> #include <sys/wait.h>
...@@ -69,10 +68,8 @@ static void Timer (void *data) ...@@ -69,10 +68,8 @@ static void Timer (void *data)
while (waitpid (pid, &status, 0) == -1); while (waitpid (pid, &status, 0) == -1);
} }
else else
{ msg_Warn (ih, "error starting xdg-screensaver: %s",
errno = err; vlc_strerror_c(err));
msg_Warn (ih, "error starting xdg-screensaver: %m");
}
} }
static void Inhibit (vlc_inhibit_t *ih, unsigned mask) static void Inhibit (vlc_inhibit_t *ih, unsigned mask)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment