From c5407a75f4f54a7690ca3b1d1331ea432a1b3ed6 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Wed, 5 Mar 2014 10:12:43 +0000 Subject: [PATCH] #define EV_HANDLER NULL in server.c --- examples/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/server.c b/examples/server.c index dea44a5c..f702c5c2 100644 --- a/examples/server.c +++ b/examples/server.c @@ -148,6 +148,8 @@ static void show_usage_and_exit(void) { exit(EXIT_FAILURE); } +#define EV_HANDLER NULL + static char *sdup(const char *str) { char *p; if ((p = (char *) malloc(strlen(str) + 1)) != NULL) { @@ -381,7 +383,7 @@ static void start_mongoose(int argc, char *argv[]) { char *options[MAX_OPTIONS]; int i; - if ((server = mg_create_server(NULL, NULL)) == NULL) { + if ((server = mg_create_server(NULL, EV_HANDLER)) == NULL) { die("%s", "Failed to start Mongoose."); }