From 96995ae680d3af1116174674f3bff27b2166418c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 13 Feb 2025 15:42:21 -0400 Subject: [PATCH] MT#55283 convert endpoint_print to bool Change-Id: I4b1ccfe3bc9412cd4f0d8366b4de8bb84d75c0c4 --- lib/socket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/socket.h b/lib/socket.h index 623ad009d..fbc41cd16 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -177,8 +177,8 @@ INLINE int sockaddr_print_port_gstring(GString *s, const sockaddr_t *a, unsigned return 0; } -INLINE int endpoint_print(const endpoint_t *ep, char *buf, size_t len) { - return sockaddr_print_port(&ep->address, ep->port, buf, len) ? 0 : 1; +INLINE bool endpoint_print(const endpoint_t *ep, char *buf, size_t len) { + return sockaddr_print_port(&ep->address, ep->port, buf, len); } INLINE char *endpoint_print_buf(const endpoint_t *ep) { return sockaddr_print_port_buf(&ep->address, ep->port);