From: Christophe CURIS <christophe.cu...@free.fr>

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 <christophe.cu...@free.fr>
---
 WINGs/wcolorpanel.c | 3 ---
 util/getstyle.c     | 4 ----
 2 files changed, 7 deletions(-)

diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c
index 60655cd..0653be6 100644
--- a/WINGs/wcolorpanel.c
+++ b/WINGs/wcolorpanel.c
@@ -36,9 +36,6 @@
 #include <sys/stat.h>
 #include <dirent.h>
 
-#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 08909a8..bf321c3 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
-- 
1.9.2


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to