[asterisk-commits] seanbright: trunk r195210 - /trunk/cdr/cdr_custom.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 18 10:55:56 CDT 2009


Author: seanbright
Date: Mon May 18 10:55:53 2009
New Revision: 195210

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195210
Log:
Const-ify a string, fix a log message, and use the correct signature for the
load_module function.

Modified:
    trunk/cdr/cdr_custom.c

Modified: trunk/cdr/cdr_custom.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/cdr/cdr_custom.c?view=diff&rev=195210&r1=195209&r2=195210
==============================================================================
--- trunk/cdr/cdr_custom.c (original)
+++ trunk/cdr/cdr_custom.c Mon May 18 10:55:53 2009
@@ -53,7 +53,7 @@
 
 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 @@
 
 	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 @@
 	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");




More information about the asterisk-commits mailing list