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

This commit is contained in:
Sergey Lyubka
2013-12-01 00:35:22 +00:00
parent ba06d135c3
commit 5b8d4cdf68
+1 -3
View File
@@ -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);
}