Browse Source

MT#55283 convert endpoint_print to bool

Change-Id: I4b1ccfe3bc9412cd4f0d8366b4de8bb84d75c0c4
pull/1910/head
Richard Fuchs 10 months ago
parent
commit
96995ae680
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/socket.h

+ 2
- 2
lib/socket.h View File

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