MT#55283 convert endpoint_print to bool

Change-Id: I4b1ccfe3bc9412cd4f0d8366b4de8bb84d75c0c4
pull/1910/head
Richard Fuchs 1 year ago
parent 5a09c9c329
commit 96995ae680

@ -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);

Loading…
Cancel
Save