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

Resolve unused function warnings when built w/o USE_MOSUITTO and USE_SYSTEMD

parent b1e17054
No related branches found
No related tags found
No related merge requests found
Pipeline #5026 passed
......@@ -358,6 +358,7 @@ void mqtt_close(struct mqtt* mqtt)
FREE_AND_NULL(mqtt->host);
}
#ifdef USE_MOSQUITTO
static int pw_callback(char* buf, int size, int rwflag, void* userdata)
{
struct mqtt* mqtt = (struct mqtt*)userdata;
......@@ -365,6 +366,7 @@ static int pw_callback(char* buf, int size, int rwflag, void* userdata)
strncpy(buf, mqtt->cfg->mqtt.tls.keypass, size);
return strlen(mqtt->cfg->mqtt.tls.keypass);
}
#endif
int mqtt_connect(struct mqtt* mqtt, const char* bind_address)
{
......
......@@ -224,6 +224,7 @@ static bool any_server_running()
return false;
}
#ifdef USE_SYSTEMD
static bool any_server_with_state(enum server_state state)
{
for(int i = 0; i < SERVER_COUNT; i++)
......@@ -232,7 +233,6 @@ static bool any_server_with_state(enum server_state state)
return false;
}
#ifdef USE_SYSTEMD
static void notify_systemd(const char* new_status)
{
static char status[1024];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment