aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-04-20 23:27:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-04-20 23:27:04 +0200
commit10fece336f1ec9d96a7dc419b0f730da4cdaf29d (patch)
treeff60ab23ecf51dcb327cc1c26d7bd9c582073c10 /lib
parentbae87dc0d93d8e56bd1038d4a46477992eaa1bdd (diff)
mqtt: make NOSTATE get within the debug name array
Diffstat (limited to 'lib')
-rw-r--r--lib/mqtt.c4
-rw-r--r--lib/mqtt.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/mqtt.c b/lib/mqtt.c
index 4c664f7f6..43a3b6e53 100644
--- a/lib/mqtt.c
+++ b/lib/mqtt.c
@@ -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
diff --git a/lib/mqtt.h b/lib/mqtt.h
index 41f7372ce..37463d58a 100644
--- a/lib/mqtt.h
+++ b/lib/mqtt.h
@@ -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 {