Fix compiler warnings

This commit is contained in:
fvanroie 2021-04-25 03:18:52 +02:00
parent 40c905687d
commit 034faa78b7
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ void connlost(void* context, char* cause)
}
// Receive incoming messages
static void mqtt_message_cb(char* topic, char* payload, unsigned int length)
static void mqtt_message_cb(char* topic, char* payload, size_t length)
{ // Handle incoming commands from MQTT
if(length + 1 >= MQTT_MAX_PACKET_SIZE) {
LOG_ERROR(TAG_MQTT_RCV, F(D_MQTT_PAYLOAD_TOO_LONG), length);

View File

@ -120,7 +120,7 @@ void connlost(void* context, char* cause)
}
// Receive incoming messages
static void mqtt_message_cb(char* topic, char* payload, unsigned int length)
static void mqtt_message_cb(char* topic, char* payload, size_t length)
{ // Handle incoming commands from MQTT
if(length + 1 >= MQTT_MAX_PACKET_SIZE) {
LOG_ERROR(TAG_MQTT_RCV, F(D_MQTT_PAYLOAD_TOO_LONG), length);