]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
mqtt: make NOSTATE get within the debug name array
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Apr 2020 21:27:04 +0000 (23:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Apr 2020 21:27:04 +0000 (23:27 +0200)
lib/mqtt.c
lib/mqtt.h

index 4c664f7f6df7a168593db767c7cf5568b520b148..43a3b6e532cfd9e128e44bffa80a4cf545eaa2aa 100644 (file)
@@ -388,7 +388,9 @@ static const char *statenames[]={
   "MQTT_SUBACK",
   "MQTT_SUBACK_COMING",
   "MQTT_PUBWAIT",
-  "MQTT_PUB_REMAIN"
+  "MQTT_PUB_REMAIN",
+
+  "NOT A STATE"
 };
 #endif
 
index 41f7372cedc2ab96749ea2a4c21203dda4965208..37463d58ade58bcf0557dec2bedfe57eb1cd77c8 100644 (file)
@@ -35,7 +35,7 @@ enum mqttstate {
   MQTT_PUBWAIT,    /* 5 - wait for 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 {