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.
This commit is contained in:
Jasper St. Pierre 2014-02-17 17:30:41 -05:00 committed by Kristian Høgsberg
parent f8b37449b2
commit ac188e9e44

View file

@ -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;
}