Replace unused case of FD_CLOSEONEXEC with a proper null statement.

This commit is contained in:
Nick Mathewson 2010-08-19 09:36:33 -04:00
parent 9985231eb7
commit 44f04a2b85

View File

@ -162,9 +162,9 @@ typedef unsigned int uint;
#define FD_CLOSEONEXEC(x) do { \ #define FD_CLOSEONEXEC(x) do { \
if (fcntl(x, F_SETFD, 1) == -1) \ if (fcntl(x, F_SETFD, 1) == -1) \
event_warn("fcntl(%d, F_SETFD)", x); \ event_warn("fcntl(%d, F_SETFD)", x); \
} while (0) } while (0)
#else #else
#define FD_CLOSEONEXEC(x) #define FD_CLOSEONEXEC(x) (void)0
#endif #endif
struct request { struct request {