summaryrefslogtreecommitdiff
path: root/addons/res_config_mysql.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-12-08 18:40:19 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-12-08 18:40:19 +0000
commit80cb88e1f83ef1a727e42c4e0cdde94ef2060514 (patch)
treec5704234f0e6a964fcc01e28f555d70656affe7f /addons/res_config_mysql.c
parent219f969dcfa111a717067084c241769338f6acb6 (diff)
Typo pointed out on #asterisk-dev (by atis_work)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/res_config_mysql.c')
-rw-r--r--addons/res_config_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c
index c68c29d9b..fc0d94e37 100644
--- a/addons/res_config_mysql.c
+++ b/addons/res_config_mysql.c
@@ -1227,7 +1227,7 @@ static int require_mysql(const char *database, const char *tablename, va_list ap
} else {
res = -1;
}
- } else if ((strncmp(column->type, "datetime", 8) == 0 || strncmp(column->type, "timestamp", 9)) && type != RQ_DATETIME) {
+ } else if ((strncmp(column->type, "datetime", 8) == 0 || strncmp(column->type, "timestamp", 9) == 0) && type != RQ_DATETIME) {
if (table->database->requirements == RQ_WARN) {
ast_log(LOG_WARNING, "Realtime table %s@%s: Column %s cannot be a %s\n", tablename, database, column->name, column->type);
res = -1;