From a987356e24123f883f172476b20382cf378fe854 Mon Sep 17 00:00:00 2001 From: Maximilian Fridrich Date: Thu, 23 Mar 2023 10:57:29 +0100 Subject: [PATCH] uri: remove ipv6 ifdef checks --- src/uri/uri.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/uri/uri.c b/src/uri/uri.c index 063651518..3812de85e 100644 --- a/src/uri/uri.c +++ b/src/uri/uri.c @@ -49,11 +49,9 @@ int uri_encode(struct re_printf *pf, const struct uri *uri) /* The IPv6 address is delimited by '[' and ']' */ switch (uri->af) { -#ifdef HAVE_INET6 case AF_INET6: err = re_hprintf(pf, "[%r]", &uri->host); break; -#endif default: err = re_hprintf(pf, "%r", &uri->host); @@ -331,11 +329,9 @@ int uri_escape_pl(struct re_printf *pf, const struct pl *pl) /* The IPv6 address is delimited by '[' and ']' */ switch (uri.af) { -#ifdef HAVE_INET6 case AF_INET6: err = re_hprintf(pf, "[%r]", &uri.host); break; -#endif default: err = re_hprintf(pf, "%r", &uri.host);