diff options
Diffstat (limited to 'addons/res_config_mysql.c')
-rw-r--r-- | addons/res_config_mysql.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c index b080d118b..edd938506 100644 --- a/addons/res_config_mysql.c +++ b/addons/res_config_mysql.c @@ -33,7 +33,6 @@ #include <sys/stat.h> #include <mysql/mysql.h> -#include <mysql/mysql_version.h> #include <mysql/errmsg.h> #include "asterisk/channel.h" @@ -447,7 +446,7 @@ static struct ast_config *realtime_multi_mysql(const char *database, const char release_database(dbh); return NULL; } - + if (!(cfg = ast_config_new())) { /* If I can't alloc memory at this point, why bother doing anything else? */ ast_log(LOG_WARNING, "Out of memory!\n"); @@ -749,7 +748,7 @@ static int update2_mysql(const char *database, const char *tablename, const stru return (int)numrows; } - + static int store_mysql(const char *database, const char *table, const struct ast_variable *rt_fields) { struct mysql_conn *dbh; @@ -873,7 +872,7 @@ static int destroy_mysql(const char *database, const char *table, const char *ke return (int)numrows; } - + static struct ast_config *config_mysql(const char *database, const char *table, const char *file, struct ast_config *cfg, struct ast_flags config_flags, const char *unused, const char *who_asked) { struct mysql_conn *dbh; @@ -1560,5 +1559,5 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "MySQL RealTime Config .unload = unload_module, .reload = reload, .load_pri = AST_MODPRI_REALTIME_DRIVER, + .requires = "extconfig", ); - |