Skip to content

Commit

Permalink
clang15 fix: define function prototype properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Mar 24, 2023
1 parent 33bf812 commit 9eba3ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions db/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ int db_bind_mod(const str* mod, db_func_t* mydbf)
* Initialize database module
* No function should be called before this
*/
db_con_t* db_do_init(const str* url, void* (*new_connection)())
db_con_t* db_do_init(const str* url, void* (*new_connection)(const struct db_id *))
{
struct db_id *id = NULL;
struct pool_con *con = NULL;
Expand Down Expand Up @@ -370,7 +370,7 @@ db_con_t* db_do_init(const str* url, void* (*new_connection)())
* Shut down database module
* No function should be called after this
*/
void db_do_close(db_con_t* _h, void (*free_connection)())
void db_do_close(db_con_t* _h, void (*free_connection)(struct pool_con*))
{
struct pool_con* con;

Expand Down
2 changes: 1 addition & 1 deletion modules/dialplan/dp_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ struct dp_connection_list * dp_get_connections(void);
struct dp_connection_list * dp_get_connection(str * partition);
struct dp_connection_list * dp_get_default_connection();
int dp_connect_db(dp_connection_list_p conn);
void dp_disconnect_db();
void dp_disconnect_db(dp_connection_list_p);

#endif

0 comments on commit 9eba3ac

Please sign in to comment.