commit 922abf8
Michael Forney
·
2013-11-26 02:38:04 +0000 UTC
parent 983b4b7
launch: Use perror instead of strerror(errno)
1 files changed,
+2,
-2
+2,
-2
1@@ -100,8 +100,8 @@ static void stop_devices(bool fatal)
2 {
3 if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 0) == -1 && fatal)
4 {
5- die("FATAL: Your kernel does not support EVIOCREVOKE; "
6- "input devices cannot be revoked: %s\n", strerror(errno));
7+ perror("FATAL: Your kernel does not support EVIOCREVOKE; "
8+ "input devices cannot be revoked");
9 }
10 close(launcher.input_fds[index]);
11 }