From: Nick Porter Date: Wed, 27 Nov 2024 08:47:01 +0000 (+0000) Subject: Doxygen fix ups X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=783fe28ea8b3dd2c1b32cdba905eb05257e3e32c;p=thirdparty%2Ffreeradius-server.git Doxygen fix ups --- diff --git a/src/modules/rlm_sql/drivers/rlm_sql_db2/rlm_sql_db2.c b/src/modules/rlm_sql/drivers/rlm_sql_db2/rlm_sql_db2.c index 809d3162fb7..36e29ce5368 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_db2/rlm_sql_db2.c +++ b/src/modules/rlm_sql/drivers/rlm_sql_db2/rlm_sql_db2.c @@ -256,7 +256,6 @@ static sql_rcode_t sql_free_result(fr_sql_query_t *query_ctx, UNUSED rlm_sql_con * @param out Array of sql_log_entrys to fill. * @param outlen Length of out array. * @param query_ctx Query context to retrieve error for. - * @param config rlm_sql config. * @return number of errors written to the #sql_log_entry_t array. */ static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen, diff --git a/src/modules/rlm_sql/drivers/rlm_sql_firebird/rlm_sql_firebird.c b/src/modules/rlm_sql/drivers/rlm_sql_firebird/rlm_sql_firebird.c index 13d9338b2b3..03e43903e02 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_firebird/rlm_sql_firebird.c +++ b/src/modules/rlm_sql/drivers/rlm_sql_firebird/rlm_sql_firebird.c @@ -268,7 +268,6 @@ static sql_rcode_t sql_free_result(fr_sql_query_t *query_ctx, UNUSED rlm_sql_con * @param out Array of sql_log_entrys to fill. * @param outlen Length of out array. * @param query_ctx Query context to retrieve error for. - * @param config rlm_sql config. * @return number of errors written to the #sql_log_entry_t array. */ static size_t sql_error(UNUSED TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen, diff --git a/src/modules/rlm_sql/drivers/rlm_sql_freetds/rlm_sql_freetds.c b/src/modules/rlm_sql/drivers/rlm_sql_freetds/rlm_sql_freetds.c index d01c3fa293f..ed4de9c4164 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_freetds/rlm_sql_freetds.c +++ b/src/modules/rlm_sql/drivers/rlm_sql_freetds/rlm_sql_freetds.c @@ -382,7 +382,6 @@ static sql_rcode_t sql_fields(char const **out[], fr_sql_query_t *query_ctx, UNU * @param out Array of sql_log_entrys to fill. * @param outlen Length of out array. * @param query_ctx Query context to retrieve error for. - * @param config rlm_sql config. * @return number of errors written to the #sql_log_entry_t array. */ static size_t sql_error(UNUSED TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen, diff --git a/src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c b/src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c index 73812a12087..7e5bdc2e986 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c +++ b/src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c @@ -629,7 +629,6 @@ static sql_rcode_t sql_free_result(fr_sql_query_t *query_ctx, UNUSED rlm_sql_con * @param out Array of sql_log_entrys to fill. * @param outlen Length of out array. * @param conn MySQL connection the query was run on. - * @param config rlm_sql config. * @return * - Number of errors written to the #sql_log_entry_t array. * - -1 on failure. @@ -695,7 +694,6 @@ static size_t sql_warnings(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen * @param out Array of sql_log_entrys to fill. * @param outlen Length of out array. * @param query_ctx Query context to retrieve error for. - * @param config rlm_sql config. * @return number of errors written to the #sql_log_entry_t array. */ static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen, diff --git a/src/modules/rlm_sql/drivers/rlm_sql_oracle/rlm_sql_oracle.c b/src/modules/rlm_sql/drivers/rlm_sql_oracle/rlm_sql_oracle.c index b23c1f3c7b8..d157225b289 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_oracle/rlm_sql_oracle.c +++ b/src/modules/rlm_sql/drivers/rlm_sql_oracle/rlm_sql_oracle.c @@ -112,7 +112,6 @@ static int sql_snprint_error(char *out, size_t outlen, rlm_sql_oracle_conn_t *co * @param out Array of sql_log_entrys to fill. * @param outlen Length of out array. * @param query_ctx Query context to retrieve error for. - * @param config rlm_sql config. * @return number of errors written to the #sql_log_entry_t array. */ static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen, diff --git a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/rlm_sql_postgresql.c b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/rlm_sql_postgresql.c index d05bbb7ba89..7a5534a5772 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/rlm_sql_postgresql.c +++ b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/rlm_sql_postgresql.c @@ -620,7 +620,6 @@ static sql_rcode_t sql_free_result(fr_sql_query_t *query_ctx, UNUSED rlm_sql_con * @param out Array of sql_log_entrys to fill. * @param outlen Length of out array. * @param query_ctx Query context to retrieve error for. - * @param config rlm_sql config. * @return number of errors written to the #sql_log_entry_t array. */ static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen, diff --git a/src/modules/rlm_sql/drivers/rlm_sql_sqlite/rlm_sql_sqlite.c b/src/modules/rlm_sql/drivers/rlm_sql_sqlite/rlm_sql_sqlite.c index 37c93e57567..1c1adacf775 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_sqlite/rlm_sql_sqlite.c +++ b/src/modules/rlm_sql/drivers/rlm_sql_sqlite/rlm_sql_sqlite.c @@ -569,7 +569,6 @@ static sql_rcode_t sql_free_result(fr_sql_query_t *query_ctx, UNUSED rlm_sql_con * @param out Array of sql_log_entrys to fill. * @param outlen Length of out array. * @param query_ctx Query context to retrieve error for. - * @param config rlm_sql config. * @return number of errors written to the #sql_log_entry_t array. */ static size_t sql_error(UNUSED TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen, diff --git a/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/rlm_sql_unixodbc.c b/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/rlm_sql_unixodbc.c index b7788adf44b..dca8006a553 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/rlm_sql_unixodbc.c +++ b/src/modules/rlm_sql/drivers/rlm_sql_unixodbc/rlm_sql_unixodbc.c @@ -648,7 +648,6 @@ static sql_rcode_t sql_finish_query(fr_sql_query_t *query_ctx, UNUSED rlm_sql_co * @param out Array of #sql_log_entry_t to fill. * @param outlen Length of out array. * @param query_ctx Query context to retrieve error for. - * @param config rlm_sql config. * @return number of errors written to the #sql_log_entry_t array. */ static size_t sql_error(TALLOC_CTX *ctx, sql_log_entry_t out[], NDEBUG_UNUSED size_t outlen, diff --git a/src/modules/rlm_sql/rlm_sql.h b/src/modules/rlm_sql/rlm_sql.h index a03e0ee70da..ef2cf6c2891 100644 --- a/src/modules/rlm_sql/rlm_sql.h +++ b/src/modules/rlm_sql/rlm_sql.h @@ -179,13 +179,12 @@ extern size_t sql_rcode_table_len; * @param[out] out a pre-allocated array of log entries to fill. Need not be NULL terminated. * @param[in] outlen Number of log entries available for populating. Do not write to index * out[outlen] or higher. - * @param[in] handle to retrieve errors from. - * @param[in] config of the SQL instance. + * @param[in] query_ctx to retrieve errors from. * @return * 0 - If no error messages are available. * >0 - Number of log entries */ -typedef size_t (*sql_error_t)(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen, fr_sql_query_t *handle); +typedef size_t (*sql_error_t)(TALLOC_CTX *ctx, sql_log_entry_t out[], size_t outlen, fr_sql_query_t *query_ctx); typedef struct { rlm_sql_t const *sql;