From 46d7d4bff36a2ff9f71a6261086e938a60832f03 Mon Sep 17 00:00:00 2001 From: Tom MTT Date: Tue, 29 Nov 2022 10:30:57 +0100 Subject: [PATCH] style(server.c): macros indentation --- server.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/server.c b/server.c index 2a1ec64..2efde86 100644 --- a/server.c +++ b/server.c @@ -105,16 +105,17 @@ int initialize_server() /* Enable dual-stack mode on supported platforms */ #ifndef __OpenBSD__ - verbose(3, " IPV6_V6ONLY..."); - if (setsockopt(server, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6_only, sizeof(ipv6_only)) < 0) - return -1; + verbose(3, " IPV6_V6ONLY..."); + if (setsockopt(server, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6_only, sizeof(ipv6_only)) < 0) + return -1; + #else - if (ipv6_only == 0) { - puts(""); - syslog(LOG_WARNING, "dual-stack mode is disabled on OpenBSD."); - syslog(LOG_WARNING, "feuille will only listen on the `::' IPv6 address."); - puts(""); - } + if (ipv6_only == 0) { + puts(""); + syslog(LOG_WARNING, "dual-stack mode is disabled on OpenBSD."); + syslog(LOG_WARNING, "feuille will only listen on the `::' IPv6 address."); + puts(""); + } #endif /* bind address and port */