From f2e7facbc3066737e21ee35232a21c1e5cf758a6 Mon Sep 17 00:00:00 2001 From: Marko Mikulicic Date: Fri, 28 Oct 2016 15:18:02 +0100 Subject: [PATCH] Fix master build amalgamation, ansi C and queue.h usage issue PUBLISHED_FROM=96a2b8a90d590da0f2d9939c1d2bc7a64d1fe36a --- mongoose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 5cc2e5ca..563a464a 100644 --- a/mongoose.c +++ b/mongoose.c @@ -8631,7 +8631,7 @@ static void mg_mqtt_close_session(struct mg_mqtt_session *s) { } void mg_mqtt_broker_init(struct mg_mqtt_broker *brk, void *user_data) { - LIST_EMPTY(&brk->sessions); + LIST_INIT(&brk->sessions); brk->user_data = user_data; } @@ -8742,7 +8742,7 @@ void mg_mqtt_broker(struct mg_connection *nc, int ev, void *data) { switch (ev) { case MG_EV_ACCEPT: mg_set_protocol_mqtt(nc); - nc->user_data = NULL; // This is NOT a listening connection + nc->user_data = NULL; /* Clear up the inherited pointer to broker */ break; case MG_EV_MQTT_CONNECT: mg_mqtt_broker_handle_connect(brk, nc);