Wayland: Removed not needed including and setting of errno.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 14 Apr 2016 21:11:43 +0200
changeset 10154 fae27a079fcb
parent 10153 2abd425e41dc
child 10155 78685b1711c6
Wayland: Removed not needed including and setting of errno. One internal function was setting errno on error but it was not read afterwards.
src/video/wayland/SDL_waylandevents.c
src/video/wayland/SDL_waylandmouse.c
--- a/src/video/wayland/SDL_waylandevents.c	Thu Apr 14 21:10:57 2016 +0200
+++ b/src/video/wayland/SDL_waylandevents.c	Thu Apr 14 21:11:43 2016 +0200
@@ -40,7 +40,6 @@
 #include <sys/select.h>
 #include <sys/mman.h>
 #include <poll.h>
-#include <errno.h>
 #include <unistd.h>
 #include <xkbcommon/xkbcommon.h>
 
--- a/src/video/wayland/SDL_waylandmouse.c	Thu Apr 14 21:10:57 2016 +0200
+++ b/src/video/wayland/SDL_waylandmouse.c	Thu Apr 14 21:11:43 2016 +0200
@@ -27,7 +27,6 @@
 #define _GNU_SOURCE
 #endif
 
-#include <errno.h>
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <fcntl.h>
@@ -70,7 +69,6 @@
 
     xdg_path = SDL_getenv("XDG_RUNTIME_DIR");
     if (!xdg_path) {
-        errno = ENOENT;
         return -1;
     }