From 5b8d4cdf68b0af526a89f0fc0c19f2fcedf30381 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Sun, 1 Dec 2013 00:35:22 +0000 Subject: [PATCH] main(argc,argv) -> main(void) --- build/src/core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build/src/core.c b/build/src/core.c index 1c9e3e26c..b85515d0f 100644 --- a/build/src/core.c +++ b/build/src/core.c @@ -1078,12 +1078,10 @@ static int event_handler(struct mg_event *ev) { return 1; } -int main(int argc, char *argv[]) { +int main(void) { const char *options[] = {"document_root", ".", "listening_port", "8080", 0}; struct mg_server *server = mg_create_server(options, event_handler, NULL); - (void) argc; (void) argv; - for (;;) { mg_poll_server(server, 1000); } -- GitLab