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

Fix accidental static storage for login/logout functions

parent 54447fc5
No related branches found
No related tags found
No related merge requests found
...@@ -684,7 +684,7 @@ int mqtt_client_on(struct mqtt* mqtt, BOOL on, int sock, client_t* client, BOOL ...@@ -684,7 +684,7 @@ int mqtt_client_on(struct mqtt* mqtt, BOOL on, int sock, client_t* client, BOOL
return result; return result;
} }
static int mqtt_user_login(struct mqtt* mqtt, client_t* client) int mqtt_user_login(struct mqtt* mqtt, client_t* client)
{ {
char str[128]; char str[128];
char topic[128]; char topic[128];
...@@ -705,7 +705,7 @@ static int mqtt_user_login(struct mqtt* mqtt, client_t* client) ...@@ -705,7 +705,7 @@ static int mqtt_user_login(struct mqtt* mqtt, client_t* client)
return mqtt_pub_timestamped_msg(mqtt, TOPIC_BBS_ACTION, topic, time(NULL), str); return mqtt_pub_timestamped_msg(mqtt, TOPIC_BBS_ACTION, topic, time(NULL), str);
} }
static int mqtt_user_logout(struct mqtt* mqtt, client_t* client, time_t logintime) int mqtt_user_logout(struct mqtt* mqtt, client_t* client, time_t logintime)
{ {
char str[128]; char str[128];
char tmp[128]; char tmp[128];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment