summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 5dd3201..121968f 100644
--- a/main.c
+++ b/main.c
@@ -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;
}