From 32fc35ef0929b18a3a322f2886bba856b73cc4ee Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 22 May 2026 06:34:31 +0000 Subject: [PATCH] CLEANUP: resolvers: fix comment typos and wrong filenames in file headers A few asorted comment fixes for resolvers (incorrect file name etc). --- include/haproxy/resolvers-t.h | 4 ++-- include/haproxy/resolvers.h | 2 +- src/resolvers.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/haproxy/resolvers-t.h b/include/haproxy/resolvers-t.h index 3bdf5237e..f0c92084c 100644 --- a/include/haproxy/resolvers-t.h +++ b/include/haproxy/resolvers-t.h @@ -1,5 +1,5 @@ /* - * include/haproxy/dns-t.h + * include/haproxy/resolvers-t.h * This file provides structures and types for DNS. * * Copyright (C) 2014 Baptiste Assmann @@ -281,7 +281,7 @@ enum { * matching preference was found. */ RSLV_UPD_SRVIP_NOT_FOUND, /* provided IP not found - * OR provided IP found and preference is not match and an IP + * OR provided IP found and preference is not matched and an IP * matching preference was found. */ RSLV_UPD_NO_IP_FOUND, /* no IP could be found in the response */ diff --git a/include/haproxy/resolvers.h b/include/haproxy/resolvers.h index ed4392a79..307e7b94b 100644 --- a/include/haproxy/resolvers.h +++ b/include/haproxy/resolvers.h @@ -1,5 +1,5 @@ /* - * include/haproxy/dns.h + * include/haproxy/resolvers.h * This file provides functions related to DNS protocol * * Copyright (C) 2014 Baptiste Assmann diff --git a/src/resolvers.c b/src/resolvers.c index 6b13aa2f9..af38ca357 100644 --- a/src/resolvers.c +++ b/src/resolvers.c @@ -226,7 +226,7 @@ struct show_resolvers_ctx { }; /* returns the currently accepted address families as a combination of - * RSLV_ACCEPT_IPV4 and RSLV_ACCEPT_IPV6 only. It will dynamically adapt adapt + * RSLV_ACCEPT_IPV4 and RSLV_ACCEPT_IPV6 only. It will dynamically adapt * the IPv6 status to sock_inet6_seems_reachable if RSLV_AUTO_FAMILY is set, * otherwise returns the relevant bits of resolv_accept_families. */ @@ -509,7 +509,7 @@ resolv_run_resolution(struct resolv_resolution *resolution) return 0; /* Check if a resolution has already been started for this server return - * directly to avoid resolution pill up. */ + * directly to avoid resolution pile up. */ if (resolution->step != RSLV_STEP_NONE) return 0;