From ac188e9e44f5f852ec6163d269979f725ce73b57 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 17 Feb 2014 17:30:41 -0500 Subject: [PATCH] wayland-client: Set a proper errno errno is supposed to be positive, not negative. It seems that everything else that calls display_fatal_error() calls it with a positive error code, so do it here as well. --- src/wayland-client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wayland-client.c b/src/wayland-client.c index 208bc9cc..2dbb295f 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -588,13 +588,13 @@ display_handle_error(void *data, switch (code) { case WL_DISPLAY_ERROR_INVALID_OBJECT: case WL_DISPLAY_ERROR_INVALID_METHOD: - err = -EINVAL; + err = EINVAL; break; case WL_DISPLAY_ERROR_NO_MEMORY: - err = -ENOMEM; + err = ENOMEM; break; default: - err = -EFAULT; + err = EFAULT; break; }