From: Volker Lendecke Date: Wed, 25 Jun 2025 08:10:53 +0000 (+0200) Subject: lib: Remove unused interpret_string_addr_prefer_ipv4() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=608c7390d1dec0d5dbb0b9692f5ec58c60091a33;p=thirdparty%2Fsamba.git lib: Remove unused interpret_string_addr_prefer_ipv4() Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/lib/util/util_net.c b/lib/util/util_net.c index ffc7e4021fd..e410cdf915a 100644 --- a/lib/util/util_net.c +++ b/lib/util/util_net.c @@ -326,21 +326,6 @@ bool interpret_string_addr(struct sockaddr_storage *pss, false); } -/******************************************************************* - Map a text hostname or IP address (IPv4 or IPv6) into a - struct sockaddr_storage. Version that prefers IPv4. -******************************************************************/ - -bool interpret_string_addr_prefer_ipv4(struct sockaddr_storage *pss, - const char *str, - int flags) -{ - return interpret_string_addr_pref(pss, - str, - flags, - true); -} - /** * Interpret an internet address or name into an IP address in 4 byte form. * RETURNS IN NETWORK BYTE ORDER (big endian). diff --git a/lib/util/util_net.h b/lib/util/util_net.h index adfe749d4b7..d8eac33f629 100644 --- a/lib/util/util_net.h +++ b/lib/util/util_net.h @@ -47,15 +47,6 @@ bool interpret_string_addr(struct sockaddr_storage *pss, const char *str, int flags); -/******************************************************************* - Map a text hostname or IP address (IPv4 or IPv6) into a - struct sockaddr_storage. Version that prefers IPv4. -******************************************************************/ - -bool interpret_string_addr_prefer_ipv4(struct sockaddr_storage *pss, - const char *str, - int flags); - void set_sockaddr_port(struct sockaddr *psa, uint16_t port); /**