style(server.c): macros indentation
This commit is contained in:
parent
bb9a60b240
commit
46d7d4bff3
1 changed files with 10 additions and 9 deletions
19
server.c
19
server.c
|
@ -105,16 +105,17 @@ int initialize_server()
|
||||||
|
|
||||||
/* Enable dual-stack mode on supported platforms */
|
/* Enable dual-stack mode on supported platforms */
|
||||||
#ifndef __OpenBSD__
|
#ifndef __OpenBSD__
|
||||||
verbose(3, " IPV6_V6ONLY...");
|
verbose(3, " IPV6_V6ONLY...");
|
||||||
if (setsockopt(server, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6_only, sizeof(ipv6_only)) < 0)
|
if (setsockopt(server, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6_only, sizeof(ipv6_only)) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
if (ipv6_only == 0) {
|
if (ipv6_only == 0) {
|
||||||
puts("");
|
puts("");
|
||||||
syslog(LOG_WARNING, "dual-stack mode is disabled on OpenBSD.");
|
syslog(LOG_WARNING, "dual-stack mode is disabled on OpenBSD.");
|
||||||
syslog(LOG_WARNING, "feuille will only listen on the `::' IPv6 address.");
|
syslog(LOG_WARNING, "feuille will only listen on the `::' IPv6 address.");
|
||||||
puts("");
|
puts("");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* bind address and port */
|
/* bind address and port */
|
||||||
|
|
Reference in a new issue