diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-18 15:55:53 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-18 15:55:53 +0000 |
commit | f4180e39d42f437c1fb28402652be335c3c0cd60 (patch) | |
tree | 395ceb285c1e779f03f1f64344107b9b083ba50f /cdr | |
parent | 9172c6413132a149a985e3f83698dc00bb3f3209 (diff) |
Const-ify a string, fix a log message, and use the correct signature for the
load_module function.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@195210 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rw-r--r-- | cdr/cdr_custom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cdr/cdr_custom.c b/cdr/cdr_custom.c index 2fd98db2c..49e5ea4bd 100644 --- a/cdr/cdr_custom.c +++ b/cdr/cdr_custom.c @@ -53,7 +53,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") AST_THREADSTORAGE(custom_buf); -static char *name = "cdr-custom"; +static const char name[] = "cdr-custom"; struct cdr_config { AST_DECLARE_STRING_FIELDS( @@ -84,7 +84,7 @@ static int load_config(void) cfg = ast_config_load(CONFIG, config_flags); if (!cfg || cfg == CONFIG_STATUS_FILEINVALID) { - ast_log(LOG_ERROR, "Unable to load " CONFIG ". Not custom CSV CDRs.\n"); + ast_log(LOG_ERROR, "Unable to load " CONFIG ". Not logging custom CSV CDRs.\n"); return -1; } @@ -177,7 +177,7 @@ static int unload_module(void) return 0; } -static int load_module(void) +static enum ast_module_load_result load_module(void) { if (AST_RWLIST_WRLOCK(&sinks)) { ast_log(LOG_ERROR, "Unable to lock sink list. Load failed.\n"); |