From: David Sommerseth Date: Tue, 10 Jan 2017 21:34:33 +0100 Message-Id: <1484080473-10415-2-git-send-email-davids@...515...> In-Reply-To: <1484080473-10415-1-git-send-email-davids@...515...> References: <04b17e24-74d9-193b-ff8d-575efbf4d63a@...2080...> <1484080473-10415-1-git-send-email-davids@...515...> Subject: [Openvpn-devel] [PATCH 2/2] management: Remove a redundant #ifdef block List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net Bascially removes two independent #ifdef ENABLE_MANAGEMENT blocks into a single block, which makes the logic flow more easy to read. Signed-off-by: David Sommerseth Cc: Selva Nair --- src/openvpn/init.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/openvpn/init.c b/src/openvpn/init.c index 4786232..5296345 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -414,11 +414,7 @@ next_connection_entry(struct context *c) break; } } - else -#endif - -#ifdef ENABLE_MANAGEMENT - if (ce_defined && management && management_query_proxy_enabled(management)) + else if (ce_defined && management && management_query_proxy_enabled(management)) { ce_defined = ce_management_query_proxy(c); if (IS_SIG(c)) -- 1.8.3.1