1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

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 <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-06-16 20:15:30 +02:00
committed by Carlos R. Mafra
parent 35b912dd25
commit ecbee34f3a
2 changed files with 0 additions and 7 deletions

View File

@@ -36,9 +36,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <dirent.h> #include <dirent.h>
#define RETRY( x ) do { \
x; \
} while (errno == EINTR);
/* BUG There's something fishy with shaped windows */ /* BUG There's something fishy with shaped windows */
/* Whithout shape extension the magnified image is completely broken -Dan */ /* Whithout shape extension the magnified image is completely broken -Dan */

View File

@@ -48,10 +48,6 @@
#include "common.h" #include "common.h"
#define RETRY( x ) do { \
x; \
} while (errno == EINTR);
#ifndef PATH_MAX #ifndef PATH_MAX
#define PATH_MAX 1024 #define PATH_MAX 1024
#endif #endif