#define EV_HANDLER NULL in server.c

This commit is contained in:
Sergey Lyubka 2014-03-05 10:12:43 +00:00
parent 7217aa22f1
commit c5407a75f4

View File

@ -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.");
}