From 18c432b83a23181b81360d2f622bbb0c91fdb36d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 25 Jul 2014 14:28:14 +0200 Subject: osdep: don't assume errno is positive Apparently this is not necessarily the case, so just drop the silly idea that depended on this assumption. --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input') diff --git a/input/input.c b/input/input.c index 9f2567d478..c035187126 100644 --- a/input/input.c +++ b/input/input.c @@ -1521,7 +1521,7 @@ struct input_ctx *mp_input_init(struct mpv_global *global) #ifndef __MINGW32__ int ret = mp_make_wakeup_pipe(ictx->wakeup_pipe); if (ret < 0) - MP_ERR(ictx, "Failed to initialize wakeup pipe: %s\n", strerror(-ret)); + MP_ERR(ictx, "Failed to initialize wakeup pipe.\n"); else mp_input_add_fd(ictx, ictx->wakeup_pipe[0], true, NULL, read_wakeup, NULL, NULL); -- cgit v1.2.3