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 authored and Carlos R. Mafra committed 2014-06-16 20:00:09 +01:00
1 parent 35b912dd25
commit ecbee34f3a
2 files changed
-7

No files matched your search

-3
View File
@@ -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 */
-4
View File
@@ -48,10 +48,6 @@
#include "common.h"
#define RETRY( x ) do { \
x; \
} while (errno == EINTR);
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif