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:
committed by
Carlos R. Mafra
parent
35b912dd25
commit
ecbee34f3a
@@ -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 */
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user