From c1d17a19279cda9193d37d8a9c32d7bdb8abab4c Mon Sep 17 00:00:00 2001 From: Juan Jose Nicola Date: Tue, 19 Dec 2023 07:43:27 +0100 Subject: [PATCH] fix docstrings --- util/mqtt.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/util/mqtt.c b/util/mqtt.c index 9a1d48c5..76889d5c 100644 --- a/util/mqtt.c +++ b/util/mqtt.c @@ -37,7 +37,7 @@ #define G_LOG_DOMAIN "libgvm util" #define QOS 1 -#define TIMEOUT 10000L +#define TIMEOUT 10000Lg typedef struct { @@ -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 () @@ -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 () @@ -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. */ @@ -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. */ @@ -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 *