mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
#define EV_HANDLER NULL in server.c
This commit is contained in:
1 parent
7217aa22f1
commit
c5407a75f4
1 file changed
+3
-1
+3
-1
@@ -148,6 +148,8 @@ static void show_usage_and_exit(void) {
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define EV_HANDLER NULL
|
||||||
|
|
||||||
static char *sdup(const char *str) {
|
static char *sdup(const char *str) {
|
||||||
char *p;
|
char *p;
|
||||||
if ((p = (char *) malloc(strlen(str) + 1)) != NULL) {
|
if ((p = (char *) malloc(strlen(str) + 1)) != NULL) {
|
||||||
@@ -381,7 +383,7 @@ static void start_mongoose(int argc, char *argv[]) {
|
|||||||
char *options[MAX_OPTIONS];
|
char *options[MAX_OPTIONS];
|
||||||
int i;
|
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.");
|
die("%s", "Failed to start Mongoose.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user