Browse Source

MT#55283 remove unused functions

Change-Id: I5377ff885315c6ba08c5f942b0c606dbd1edd478
pull/1910/head
Richard Fuchs 10 months ago
parent
commit
854ef3f0fc
1 changed files with 0 additions and 11 deletions
  1. +0
    -11
      lib/socket.h

+ 0
- 11
lib/socket.h View File

@ -169,23 +169,12 @@ INLINE char *sockaddr_print_port_buf(const sockaddr_t *a, unsigned int port) {
sockaddr_print_port(a, port, buf, THREAD_BUF_SIZE);
return buf;
}
INLINE int sockaddr_print_port_gstring(GString *s, const sockaddr_t *a, unsigned int port) {
char buf[THREAD_BUF_SIZE];
if (!sockaddr_print_port(a, port, buf, THREAD_BUF_SIZE))
return -1;
g_string_append(s, buf);
return 0;
}
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);
}
INLINE int endpoint_print_gstring(GString *s, const endpoint_t *ep) {
return sockaddr_print_port_gstring(s, &ep->address, ep->port);
}
INLINE int is_addr_unspecified(const sockaddr_t *a) {
if (!a || !a->family)
return 1;


Loading…
Cancel
Save