Commit 5b8d4cdf authored by Sergey Lyubka's avatar Sergey Lyubka

main(argc,argv) -> main(void)

parent ba06d135
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment