Skip to content
Snippets Groups Projects
Commit 1e97f8b6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Resolve GCC warning about function prototype mismatch

warning: passing argument 2 of ‘mosquitto_message_callback_set’ from incompatible pointer type
parent f23f2109
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3573 passed
...@@ -420,9 +420,11 @@ static int lprintf(int (*lputs)(int level, const char* str), int level, const ch ...@@ -420,9 +420,11 @@ static int lprintf(int (*lputs)(int level, const char* str), int level, const ch
} }
#ifdef USE_MOSQUITTO #ifdef USE_MOSQUITTO
static void mqtt_message_received(struct mosquitto* mosq, struct startup* startup, const struct mosquitto_message* msg) static void mqtt_message_received(struct mosquitto* mosq, void* cbdata, const struct mosquitto_message* msg)
{ {
char topic[128]; char topic[128];
struct startup* startup = (struct startup*)cbdata;
// lprintf(LOG_DEBUG, "MQTT message received (%d bytes) on %s", msg->payloadlen, msg->topic); // lprintf(LOG_DEBUG, "MQTT message received (%d bytes) on %s", msg->payloadlen, msg->topic);
if(startup->type == SERVER_TERM) { if(startup->type == SERVER_TERM) {
bbs_startup_t* bbs_startup = (bbs_startup_t*)startup; bbs_startup_t* bbs_startup = (bbs_startup_t*)startup;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment