commit 922abf8b01fcc7edb8d3da4e1f58b191fbe8eddd parent 983b4b7597df0c54f88c5c98d91644a568ddb0df Author: Michael Forney <mforney@mforney.org> Date: Mon, 25 Nov 2013 18:38:04 -0800 launch: Use perror instead of strerror(errno) Diffstat:
M | launch/launch.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/launch/launch.c b/launch/launch.c @@ -100,8 +100,8 @@ static void stop_devices(bool fatal) { if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 0) == -1 && fatal) { - die("FATAL: Your kernel does not support EVIOCREVOKE; " - "input devices cannot be revoked: %s\n", strerror(errno)); + perror("FATAL: Your kernel does not support EVIOCREVOKE; " + "input devices cannot be revoked"); } close(launcher.input_fds[index]); }