mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
fixed mqtt vc98 warning
This commit is contained in:
1 parent
101beec3ae
commit
040936eb47
1 file changed
+3
-2
+3
-2
@@ -460,8 +460,9 @@ static void mqtt_cb(struct mg_connection *c, int ev, void *ev_data,
|
|||||||
if (c->is_mqtt5) remaining_len += 2; // 3.4.2
|
if (c->is_mqtt5) remaining_len += 2; // 3.4.2
|
||||||
|
|
||||||
mg_mqtt_send_header(
|
mg_mqtt_send_header(
|
||||||
c, mm.qos == 2 ? MQTT_CMD_PUBREC : MQTT_CMD_PUBACK, 0,
|
c,
|
||||||
remaining_len);
|
(uint8_t) (mm.qos == 2 ? MQTT_CMD_PUBREC : MQTT_CMD_PUBACK),
|
||||||
|
0, remaining_len);
|
||||||
mg_send(c, &id, sizeof(id));
|
mg_send(c, &id, sizeof(id));
|
||||||
|
|
||||||
if (c->is_mqtt5) {
|
if (c->is_mqtt5) {
|
||||||
|
|||||||
Reference in new issue
Block a user