diff options
author | Ian Moffett <ian@osmora.org> | 2024-09-24 02:38:56 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-09-24 02:38:56 -0400 |
commit | 39f5e0d6dda6d7af7199f744b7b0f4d7a5ca9478 (patch) | |
tree | aefecca84b21eafdf8b9662e80bcc76aea2dfa6a /ostp.d/net | |
parent | 7e5e0f49dcb6ba416da5fc9e536109c04f338f95 (diff) |
ostp.d: init: Move main() to otd_init.c
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'ostp.d/net')
-rw-r--r-- | ostp.d/net/otd_listen.c | 8 |
1 files changed, 6 insertions, 2 deletions
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(); } |