From 43be904636546364a8fa5e5c3b0a320b5c005152 Mon Sep 17 00:00:00 2001 From: Tom MTT Date: Tue, 29 Nov 2022 10:33:15 +0100 Subject: [PATCH] style: macros indentations (again) --- feuille.c | 4 ++-- server.c | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/feuille.c b/feuille.c index 2059836..1698be7 100644 --- a/feuille.c +++ b/feuille.c @@ -294,9 +294,9 @@ int main(int argc, char *argv[]) } /* OpenBSD-only security measures */ - #ifdef __OpenBSD__ +#ifdef __OpenBSD__ pledge("proc stdio rpath wpath cpath inet", "stdio rpath wpath cpath inet"); - #endif +#endif /* create a thread pool for incoming connections */ diff --git a/server.c b/server.c index 2efde86..27d3bfe 100644 --- a/server.c +++ b/server.c @@ -104,19 +104,18 @@ int initialize_server() return -1; /* Enable dual-stack mode on supported platforms */ - #ifndef __OpenBSD__ +#ifndef __OpenBSD__ verbose(3, " IPV6_V6ONLY..."); if (setsockopt(server, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6_only, sizeof(ipv6_only)) < 0) return -1; - - #else +#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(""); } - #endif +#endif /* bind address and port */ verbose(3, "binding address on the socket...");