From b5085cf1c7ac28cdc9d9e4054fe2277df1f11c39 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 12 Feb 2025 11:48:54 -0400 Subject: [PATCH] MT#55283 convert ipv46_any_convert to bool Change-Id: I7671aca8592ca02b6005c5e94aae3d18444fd7dc --- lib/socket.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/socket.h b/lib/socket.h index ccfd06e44..6c44fb005 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -331,14 +331,14 @@ INLINE bool sockaddr_getaddrinfo(sockaddr_t *a, const char *s) { INLINE bool endpoint_parse_any_getaddrinfo(endpoint_t *d, const char *s) { return endpoint_parse_any_getaddrinfo_alt(d, NULL, s); } -INLINE int ipv46_any_convert(endpoint_t *ep) { +INLINE bool ipv46_any_convert(endpoint_t *ep) { if (ep->address.family->af != AF_INET) - return 0; + return false; if (!is_addr_unspecified(&ep->address)) - return 0; + return false; ep->address.family = __get_socket_family_enum(SF_IP6); ZERO(ep->address.ipv6); - return 1; + return true; } // needs a writeable str INLINE int endpoint_parse_any_str(endpoint_t *d, str *s) {