mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-14 10:20:01 +00:00
main(argc,argv) -> main(void)
This commit is contained in:
1 parent
ba06d135c3
commit
5b8d4cdf68
1 file changed
+1
-3
+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