From 39f5e0d6dda6d7af7199f744b7b0f4d7a5ca9478 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 24 Sep 2024 02:38:56 -0400 Subject: ostp.d: init: Move main() to otd_init.c Signed-off-by: Ian Moffett --- ostp.d/net/otd_listen.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ostp.d/net') diff --git a/ostp.d/net/otd_listen.c b/ostp.d/net/otd_listen.c index 87744c2..df4473b 100644 --- a/ostp.d/net/otd_listen.c +++ b/ostp.d/net/otd_listen.c @@ -180,8 +180,12 @@ read_clients(void) close(serv_sock); } +/* + * Begin listening for incoming connections + * and handle them. + */ int -main(void) +net_listen(void) { struct sockaddr_in saddr; int error; @@ -211,5 +215,5 @@ main(void) } read_clients(); - return 0; + __builtin_unreachable(); } -- cgit v1.2.3