Skip to content

Commit

Permalink
Wayland: Removed not needed including and setting of errno.
Browse files Browse the repository at this point in the history
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 31cbb34
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/video/wayland/SDL_waylandevents.c
Expand Up @@ -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>

Expand Down
2 changes: 0 additions & 2 deletions src/video/wayland/SDL_waylandmouse.c
Expand Up @@ -27,7 +27,6 @@
#define _GNU_SOURCE
#endif

#include <errno.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 31cbb34

Please sign in to comment.