From ecbee34f3ac41b5088d83fa02322a6b40985a29a Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 16 Jun 2014 20:15:30 +0200 Subject: [PATCH] Removed definitions of dangerous macro RETRY that does not work as expected This macro supposes that the called lib function clears the 'errno' variable on success which is not the case. The macro was (luckily) not used in these file yet, by removing it we make sure it won't happen. Signed-off-by: Christophe CURIS --- WINGs/wcolorpanel.c | 3 --- util/getstyle.c | 4 ---- 2 files changed, 7 deletions(-) diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c index 60655cdf..0653be6a 100644 --- a/WINGs/wcolorpanel.c +++ b/WINGs/wcolorpanel.c @@ -36,9 +36,6 @@ #include #include -#define RETRY( x ) do { \ - x; \ - } while (errno == EINTR); /* BUG There's something fishy with shaped windows */ /* Whithout shape extension the magnified image is completely broken -Dan */ diff --git a/util/getstyle.c b/util/getstyle.c index 08909a84..bf321c30 100644 --- a/util/getstyle.c +++ b/util/getstyle.c @@ -48,10 +48,6 @@ #include "common.h" -#define RETRY( x ) do { \ - x; \ - } while (errno == EINTR); - #ifndef PATH_MAX #define PATH_MAX 1024 #endif -- 2.11.4.GIT