diff options
Diffstat (limited to 'tests/t_socket.c')
| -rw-r--r-- | tests/t_socket.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/t_socket.c b/tests/t_socket.c index cf7d291..bbc9e5e 100644 --- a/tests/t_socket.c +++ b/tests/t_socket.c | |||
| @@ -58,14 +58,6 @@ static void bound_address(int s, char ip[16], uint16_t *port) { | |||
| 58 | } | 58 | } |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | static uint16_t bound_port(int s) { | ||
| 62 | char ip[16]; | ||
| 63 | uint16_t port; | ||
| 64 | |||
| 65 | bound_address(s, ip, &port); | ||
| 66 | return port; | ||
| 67 | } | ||
| 68 | |||
| 69 | static int is_nonblocking(int s) { | 61 | static int is_nonblocking(int s) { |
| 70 | int flags = fcntl(s, F_GETFL, 0); | 62 | int flags = fcntl(s, F_GETFL, 0); |
| 71 | return flags != -1 && (flags & O_NONBLOCK) != 0; | 63 | return flags != -1 && (flags & O_NONBLOCK) != 0; |
