os: drop extra ifdefs for AF_INET6

Since IPv6 is now only defined if IPv6 is really supported, we don't
need to ifdef on AF_INET6 anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1539>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-04-18 15:24:07 +02:00
committed by Marge Bot
parent bc55a98d62
commit f8057261fe
4 changed files with 58 additions and 58 deletions

View File

@@ -397,7 +397,7 @@ AuthAudit(ClientPtr client, Bool letin,
snprintf(addr, sizeof(addr), "IP %s",
inet_ntoa(((struct sockaddr_in *) saddr)->sin_addr));
break;
#if defined(IPv6) && defined(AF_INET6)
#if defined(IPv6)
case AF_INET6:{
char ipaddr[INET6_ADDRSTRLEN];