Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/mqttc/mqttc_pub.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@
case 'q':
switch (strtol(optarg, NULL, 10))
{
case '0':
case 0L:
cfg->qos = MQTT_PUBLISH_QOS_0;
break;
case '1':
case 1L:
cfg->qos = MQTT_PUBLISH_QOS_1;
break;
case '2':
case 2L:
cfg->qos = MQTT_PUBLISH_QOS_2;
break;
}
Expand Down Expand Up @@ -493,7 +493,7 @@
struct mqtt_conn_context_s mqtt_conn;
mqtt_pal_socket_handle socketfd;
int timeout = 100;
enum MQTTErrors mqtterr;

Check failure on line 496 in examples/mqttc/mqttc_pub.c

View workflow job for this annotation

GitHub Actions / check

Mixed case identifier found
pthread_attr_t attr;
pthread_t thrdid;
int n = 1;
Expand Down Expand Up @@ -528,7 +528,7 @@
NULL);
if (mqtterr != MQTT_OK)
{
printf("ERRPR! mqtt_init() failed.\n");
printf("ERROR! mqtt_init() failed.\n");
goto err_with_conn;
}

Expand Down
Loading