mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-09 16:52:09 +07:00
main(argc,argv) -> main(void)
This commit is contained in:
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user