From 44f04a2b85dd45083e32bbf29f5bc53ec2830303 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 19 Aug 2010 09:36:33 -0400 Subject: [PATCH] Replace unused case of FD_CLOSEONEXEC with a proper null statement. --- evdns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evdns.c b/evdns.c index fb3227c5..c85f6ea7 100644 --- a/evdns.c +++ b/evdns.c @@ -162,9 +162,9 @@ typedef unsigned int uint; #define FD_CLOSEONEXEC(x) do { \ if (fcntl(x, F_SETFD, 1) == -1) \ event_warn("fcntl(%d, F_SETFD)", x); \ -} while (0) + } while (0) #else -#define FD_CLOSEONEXEC(x) +#define FD_CLOSEONEXEC(x) (void)0 #endif struct request {