diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -25,8 +25,9 @@ int main() { sigaction(SIGPIPE, &(struct sigaction){SIG_IGN}, NULL); - server_t server = server_create(SERVER_PORT); - server_start(&server); + server_t server; + server_init(&server, SERVER_PORT); + server_run(&server); return EXIT_SUCCESS; } |