Explorar o código

mg_start() has changed

valenok %!s(int64=14) %!d(string=hai) anos
pai
achega
b452eb1eae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/chat.c

+ 1 - 1
examples/chat.c

@@ -374,7 +374,7 @@ int main(void) {
   srand((unsigned) time(0));
 
   // Setup and start Mongoose
-  ctx = mg_start(&event_handler, options);
+  ctx = mg_start(&event_handler, NULL, options);
   assert(ctx != NULL);
 
   // Wait until enter is pressed, then exit