Skip to content

Commit

Permalink
fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Dec 19, 2023
1 parent 6f40dab commit c1d17a1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions util/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#define G_LOG_DOMAIN "libgvm util"

#define QOS 1
#define TIMEOUT 10000L
#define TIMEOUT 10000Lg

typedef struct
{
Expand Down Expand Up @@ -108,8 +108,6 @@ mqtt_set_global_username (const char *username)

/**
* @brief Get global username.
*
* @return Username, NULL if not found.
*/
static const char *
mqtt_get_global_username ()
Expand All @@ -130,8 +128,6 @@ mqtt_set_global_password (const char *password)

/**
* @brief Get global password.
*
* @return Password, NULL if not found.
*/
static const char *
mqtt_get_global_password ()
Expand Down Expand Up @@ -312,7 +308,10 @@ mqtt_set_client (mqtt_t *mqtt, MQTTClient client)
/**
* @brief Make new client and connect to mqtt broker.
*
* @param mqtt Initialized mqtt_t
* @param mqtt Initialized mqtt_t
* @param server_uri Server URI
* @param username Username
* @param password Password
*
* @return 0 on success, <0 on error.
*/
Expand Down Expand Up @@ -364,6 +363,8 @@ mqtt_connect (mqtt_t *mqtt, const char *server_uri, const char *username,
* @brief Init MQTT communication
*
* @param server_uri Server URI
* @param username Username
* @param password Password
*
* @return 0 on success, <0 on error.
*/
Expand Down Expand Up @@ -518,8 +519,8 @@ mqtt_publish (const char *topic, const char *msg)
* meant for error messages and the likes emitted by openvas.
*
* @param server_uri_in Server URI
* @param username Username
* @param password Password
* @param username_in Username
* @param password_in Password
* @param topic Topic to publish to
* @param msg Message to publish
*
Expand Down

0 comments on commit c1d17a1

Please sign in to comment.