Skip to content

Commit

Permalink
Merge pull request #2014 from signalwire/prototype
Browse files Browse the repository at this point in the history
[Core] Fix switch_core_sqldb_destroy() function declaration.
  • Loading branch information
andywolk authored Mar 31, 2023
2 parents 9494148 + 9940623 commit d163919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/include/private/switch_core_pvt.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ extern struct switch_session_manager session_manager;


switch_status_t switch_core_sqldb_init(const char **err);
void switch_core_sqldb_destroy();
void switch_core_sqldb_destroy(void);
switch_status_t switch_core_sqldb_start(switch_memory_pool_t *pool, switch_bool_t manage);
void switch_core_sqldb_stop(void);
void switch_core_session_init(switch_memory_pool_t *pool);
Expand Down
2 changes: 1 addition & 1 deletion src/switch_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,7 @@ SWITCH_DECLARE(switch_bool_t) switch_core_ready_outbound(void)
return (switch_test_flag((&runtime), SCF_SHUTTING_DOWN) || switch_test_flag((&runtime), SCF_NO_NEW_OUTBOUND_SESSIONS)) ? SWITCH_FALSE : SWITCH_TRUE;
}

void switch_core_sqldb_destroy()
void switch_core_sqldb_destroy(void)
{
if (switch_test_flag((&runtime), SCF_USE_SQL)) {
switch_core_sqldb_stop();
Expand Down

0 comments on commit d163919

Please sign in to comment.