[asterisk-commits] seanbright: branch seanbright/cdr-syslog r203841 - /team/seanbright/cdr-syslo...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 26 16:42:02 CDT 2009


Author: seanbright
Date: Fri Jun 26 16:41:58 2009
New Revision: 203841

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=203841
Log:
More changes based on Russell's review.

Modified:
    team/seanbright/cdr-syslog/cdr/cdr_syslog.c

Modified: team/seanbright/cdr-syslog/cdr/cdr_syslog.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/seanbright/cdr-syslog/cdr/cdr_syslog.c?view=diff&rev=203841&r1=203840&r2=203841
==============================================================================
--- team/seanbright/cdr-syslog/cdr/cdr_syslog.c (original)
+++ team/seanbright/cdr-syslog/cdr/cdr_syslog.c Fri Jun 26 16:41:58 2009
@@ -213,11 +213,7 @@
 
 	ast_config_destroy(cfg);
 
-	if (AST_RWLIST_EMPTY(&sinks)) {
-		return -1;
-	}
-
-	return 0;
+	return AST_RWLIST_EMPTY(&sinks) ? -1 : 0;
 }
 
 static int unload_module(void)
@@ -264,10 +260,8 @@
 	free_config();
 	res = load_config();
 	AST_RWLIST_UNLOCK(&sinks);
-	if (res) {
-		return AST_MODULE_LOAD_DECLINE;
-	}
-	return AST_MODULE_LOAD_SUCCESS;
+
+	return res ? AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS;
 }
 
 AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "Customizable syslog CDR Backend",




More information about the asterisk-commits mailing list