From 31cbb34ec92bad0065e8ba23a4be8712d1291ad3 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Thu, 14 Apr 2016 21:11:43 +0200 Subject: [PATCH] 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 | 1 - src/video/wayland/SDL_waylandmouse.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index 8a645c4681f49..e96e8ee60a4e9 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include diff --git a/src/video/wayland/SDL_waylandmouse.c b/src/video/wayland/SDL_waylandmouse.c index 417f151ca1230..f28e80ae8dd9d 100644 --- a/src/video/wayland/SDL_waylandmouse.c +++ b/src/video/wayland/SDL_waylandmouse.c @@ -27,7 +27,6 @@ #define _GNU_SOURCE #endif -#include #include #include #include @@ -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; }