1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 17:31:46 -05:00

mqtt: make NOSTATE get within the debug name array

This commit is contained in:
Daniel Stenberg 2020-04-20 23:27:04 +02:00
parent bae87dc0d9
commit 10fece336f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 4 additions and 2 deletions

View File

@ -388,7 +388,9 @@ static const char *statenames[]={
"MQTT_SUBACK", "MQTT_SUBACK",
"MQTT_SUBACK_COMING", "MQTT_SUBACK_COMING",
"MQTT_PUBWAIT", "MQTT_PUBWAIT",
"MQTT_PUB_REMAIN" "MQTT_PUB_REMAIN",
"NOT A STATE"
}; };
#endif #endif

View File

@ -35,7 +35,7 @@ enum mqttstate {
MQTT_PUBWAIT, /* 5 - wait for publish */ MQTT_PUBWAIT, /* 5 - wait for publish */
MQTT_PUB_REMAIN, /* 6 - wait for the remainder of the publish */ MQTT_PUB_REMAIN, /* 6 - wait for the remainder of the publish */
MQTT_NOSTATE = 99 /* never an actual state */ MQTT_NOSTATE /* 7 - never used an actual state */
}; };
struct mqtt_conn { struct mqtt_conn {