Commit 1e97f8b6 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Resolve GCC warning about function prototype mismatch

warning: passing argument 2 of ‘mosquitto_message_callback_set’ from incompatible pointer type
parent f23f2109
Pipeline #3573 passed with stage
in 7 minutes and 6 seconds
......@@ -420,9 +420,11 @@ static int lprintf(int (*lputs)(int level, const char* str), int level, const ch
}
#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];
struct startup* startup = (struct startup*)cbdata;
// lprintf(LOG_DEBUG, "MQTT message received (%d bytes) on %s", msg->payloadlen, msg->topic);
if(startup->type == SERVER_TERM) {
bbs_startup_t* bbs_startup = (bbs_startup_t*)startup;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment