summaryrefslogtreecommitdiff
path: root/cdr/cdr_sqlite3_custom.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2010-03-14 17:43:46 +0000
committerSean Bright <sean@malleable.com>2010-03-14 17:43:46 +0000
commit9a3d1b76e3b599bff3163cada8e5828a96c9ea67 (patch)
tree6291d2177044eeeff15310892a78134f7a296216 /cdr/cdr_sqlite3_custom.c
parentfa9d6969d6a7b19024bc62f62da28e599bf7a1ee (diff)
Fix building CDR and CEL SQLite3 modules.
They added a sqlite3_log() function which was conflicting with our function names. (closes issue #17017) Reported by: alephlg git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@252314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cdr/cdr_sqlite3_custom.c')
-rw-r--r--cdr/cdr_sqlite3_custom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cdr/cdr_sqlite3_custom.c b/cdr/cdr_sqlite3_custom.c
index 495890ffc..eb2e0929f 100644
--- a/cdr/cdr_sqlite3_custom.c
+++ b/cdr/cdr_sqlite3_custom.c
@@ -219,7 +219,7 @@ static void free_config(int reload)
}
}
-static int sqlite3_log(struct ast_cdr *cdr)
+static int write_cdr(struct ast_cdr *cdr)
{
int res = 0;
char *error = NULL;
@@ -329,7 +329,7 @@ static int load_module(void)
}
}
- res = ast_cdr_register(name, desc, sqlite3_log);
+ res = ast_cdr_register(name, desc, write_cdr);
if (res) {
ast_log(LOG_ERROR, "Unable to register custom SQLite3 CDR handling\n");
free_config(0);