summaryrefslogtreecommitdiff
path: root/tests/t_socket.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-25 03:32:27 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-25 03:32:27 +0100
commit17dbb4ccbff1259da86ce6a602cbcd8f49ecfbf5 (patch)
treecceddce29812d70ff218e37389daf178bb7ba010 /tests/t_socket.c
parent936ede3b1142a72e44900c33378638cc1dfb54ec (diff)
Drop dead test helperHEADmaster
Diffstat (limited to 'tests/t_socket.c')
-rw-r--r--tests/t_socket.c8
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
61static 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
69static int is_nonblocking(int s) { 61static 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;