Skip to content
Permalink
Browse files

Wayland: Removed not needed including and setting of errno.

One internal function was setting errno on error but it was not read afterwards.
  • Loading branch information
philippwiesemann committed Apr 14, 2016
1 parent ea86c01 commit 31cbb34ec92bad0065e8ba23a4be8712d1291ad3
Showing with 0 additions and 3 deletions.
  1. +0 −1 src/video/wayland/SDL_waylandevents.c
  2. +0 −2 src/video/wayland/SDL_waylandmouse.c
@@ -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>

@@ -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 @@ wayland_create_tmp_file(off_t size)

xdg_path = SDL_getenv("XDG_RUNTIME_DIR");
if (!xdg_path) {
errno = ENOENT;
return -1;
}

0 comments on commit 31cbb34

Please sign in to comment.