mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-19 01:04:58 -04:00
Replace unused case of FD_CLOSEONEXEC with a proper null statement.
This commit is contained in:
parent
9985231eb7
commit
44f04a2b85
4
evdns.c
4
evdns.c
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user