Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more linting #174

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
add missing parameter name
  • Loading branch information
fperrad committed Oct 28, 2022
commit 8060234d5199f3317250b5b1371846c793e7553a
4 changes: 2 additions & 2 deletions include/mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ struct mqtt_client {
* This member is always initialized to NULL but it can be manually set at any
* time.
*/
enum MQTTErrors (*inspector_callback)(struct mqtt_client*);
enum MQTTErrors (*inspector_callback)(struct mqtt_client* client);

/**
* @brief A callback that is called whenever the client is in an error state.
Expand All @@ -1199,7 +1199,7 @@ struct mqtt_client {
* previous sockets, and reestabilishing the connection to the broker and
* session configurations (i.e. subscriptions).
*/
void (*reconnect_callback)(struct mqtt_client*, void**);
void (*reconnect_callback)(struct mqtt_client* client, void** state);

/**
* @brief A pointer to some state. A pointer to this member is passed to
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ enum MQTTErrors mqtt_init(struct mqtt_client *client,
}

void mqtt_init_reconnect(struct mqtt_client *client,
void (*reconnect_callback)(struct mqtt_client *, void**),
void (*reconnect_callback)(struct mqtt_client *client, void** state),
void *reconnect_state,
void (*publish_response_callback)(void** state, struct mqtt_response_publish *publish))
{
Expand Down