Wayland: Removed not needed including and setting of errno.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 14 Apr 2016 21:11:43 +0200
changeset 10154fae27a079fcb
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
     1.1 --- a/src/video/wayland/SDL_waylandevents.c	Thu Apr 14 21:10:57 2016 +0200
     1.2 +++ b/src/video/wayland/SDL_waylandevents.c	Thu Apr 14 21:11:43 2016 +0200
     1.3 @@ -40,7 +40,6 @@
     1.4  #include <sys/select.h>
     1.5  #include <sys/mman.h>
     1.6  #include <poll.h>
     1.7 -#include <errno.h>
     1.8  #include <unistd.h>
     1.9  #include <xkbcommon/xkbcommon.h>
    1.10  
     2.1 --- a/src/video/wayland/SDL_waylandmouse.c	Thu Apr 14 21:10:57 2016 +0200
     2.2 +++ b/src/video/wayland/SDL_waylandmouse.c	Thu Apr 14 21:11:43 2016 +0200
     2.3 @@ -27,7 +27,6 @@
     2.4  #define _GNU_SOURCE
     2.5  #endif
     2.6  
     2.7 -#include <errno.h>
     2.8  #include <sys/types.h>
     2.9  #include <sys/mman.h>
    2.10  #include <fcntl.h>
    2.11 @@ -70,7 +69,6 @@
    2.12  
    2.13      xdg_path = SDL_getenv("XDG_RUNTIME_DIR");
    2.14      if (!xdg_path) {
    2.15 -        errno = ENOENT;
    2.16          return -1;
    2.17      }
    2.18