[asterisk-commits] russell: trunk r249058 - /trunk/cdr/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 26 02:45:15 CST 2010
Author: russell
Date: Fri Feb 26 02:45:11 2010
New Revision: 249058
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=249058
Log:
formatting tweaks and constification
Modified:
trunk/cdr/cdr_adaptive_odbc.c
trunk/cdr/cdr_csv.c
trunk/cdr/cdr_custom.c
trunk/cdr/cdr_manager.c
trunk/cdr/cdr_odbc.c
trunk/cdr/cdr_pgsql.c
trunk/cdr/cdr_radius.c
trunk/cdr/cdr_sqlite.c
trunk/cdr/cdr_sqlite3_custom.c
trunk/cdr/cdr_syslog.c
trunk/cdr/cdr_tds.c
Modified: trunk/cdr/cdr_adaptive_odbc.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_adaptive_odbc.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_adaptive_odbc.c (original)
+++ trunk/cdr/cdr_adaptive_odbc.c Fri Feb 26 02:45:11 2010
@@ -16,8 +16,8 @@
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Adaptive ODBC CDR backend
*
* \author Tilghman Lesher <cdr_adaptive_odbc__v1 at the-tilghman.com>
@@ -50,7 +50,7 @@
#define CONFIG "cdr_adaptive_odbc.conf"
-static char *name = "Adaptive ODBC";
+static const char name[] = "Adaptive ODBC";
/* Optimization to reduce number of memory allocations */
static int maxsize = 512, maxsize2 = 512;
Modified: trunk/cdr/cdr_csv.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_csv.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_csv.c (original)
+++ trunk/cdr/cdr_csv.c Fri Feb 26 02:45:11 2010
@@ -18,8 +18,8 @@
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Comma Separated Value CDR records.
*
* \author Mark Spencer <markster at digium.com>
@@ -49,7 +49,7 @@
static int loguniqueid = 0;
static int loguserfield = 0;
static int loaded = 0;
-static char *config = "cdr.conf";
+static const char config[] = "cdr.conf";
/* #define CSV_LOGUNIQUEID 1 */
/* #define CSV_LOGUSERFIELD 1 */
Modified: trunk/cdr/cdr_custom.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_custom.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_custom.c (original)
+++ trunk/cdr/cdr_custom.c Fri Feb 26 02:45:11 2010
@@ -18,8 +18,8 @@
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Custom Comma Separated Value CDR records.
*
* \author Mark Spencer <markster at digium.com>
Modified: trunk/cdr/cdr_manager.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_manager.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_manager.c (original)
+++ trunk/cdr/cdr_manager.c Fri Feb 26 02:45:11 2010
@@ -14,8 +14,8 @@
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Asterisk Call Manager CDR records.
*
* See also
@@ -43,7 +43,7 @@
#define CONF_FILE "cdr_manager.conf"
#define CUSTOM_FIELDS_BUF_SIZE 1024
-static char *name = "cdr_manager";
+static const char name[] = "cdr_manager";
static int enablecdr = 0;
Modified: trunk/cdr/cdr_odbc.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_odbc.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_odbc.c (original)
+++ trunk/cdr/cdr_odbc.c Fri Feb 26 02:45:11 2010
@@ -16,8 +16,8 @@
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief ODBC CDR Backend
*
* \author Brian K. West <brian at bkw.org>
@@ -37,8 +37,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <time.h>
-
#include "asterisk/config.h"
#include "asterisk/channel.h"
#include "asterisk/cdr.h"
@@ -47,8 +45,8 @@
#define DATE_FORMAT "%Y-%m-%d %T"
-static char *name = "ODBC";
-static char *config_file = "cdr_odbc.conf";
+static const char name[] = "ODBC";
+static const char config_file[] = "cdr_odbc.conf";
static char *dsn = NULL, *table = NULL;
enum {
Modified: trunk/cdr/cdr_pgsql.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_pgsql.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_pgsql.c (original)
+++ trunk/cdr/cdr_pgsql.c Fri Feb 26 02:45:11 2010
@@ -20,8 +20,8 @@
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief PostgreSQL CDR logger
*
* \author Matthew D. Hardeman <mhardemn at papersoft.com>
Modified: trunk/cdr/cdr_radius.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_radius.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_radius.c (original)
+++ trunk/cdr/cdr_radius.c Fri Feb 26 02:45:11 2010
@@ -16,9 +16,10 @@
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief RADIUS CDR Support
+ *
* \author Philippe Sultan
* \extref The Radius Client Library - http://developer.berlios.de/projects/radiusclient-ng/
*
@@ -34,7 +35,6 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <time.h>
#include <radiusclient-ng.h>
#include "asterisk/channel.h"
@@ -77,9 +77,9 @@
RADIUS_FLAG_LOGUSERFIELD = (1 << 2)
};
-static char *desc = "RADIUS CDR Backend";
-static char *name = "radius";
-static char *cdr_config = "cdr.conf";
+static const char desc[] = "RADIUS CDR Backend";
+static const char name[] = "radius";
+static const char cdr_config[] = "cdr.conf";
static char radiuscfg[PATH_MAX] = "/etc/radiusclient-ng/radiusclient.conf";
Modified: trunk/cdr/cdr_sqlite.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_sqlite.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_sqlite.c (original)
+++ trunk/cdr/cdr_sqlite.c Fri Feb 26 02:45:11 2010
@@ -55,7 +55,7 @@
/* When you change the DATE_FORMAT, be sure to change the CHAR(19) below to something else */
#define DATE_FORMAT "%Y-%m-%d %T"
-static char *name = "sqlite";
+static const char name[] = "sqlite";
static sqlite* db = NULL;
AST_MUTEX_DEFINE_STATIC(sqlite_lock);
Modified: trunk/cdr/cdr_sqlite3_custom.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_sqlite3_custom.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_sqlite3_custom.c (original)
+++ trunk/cdr/cdr_sqlite3_custom.c Fri Feb 26 02:45:11 2010
@@ -16,8 +16,8 @@
* at the top of the source tree.
*/
-/*! \file
- *
+/*!
+ * \file
* \brief Custom SQLite3 CDR records.
*
* \author Adapted by Alejandro Rios <alejandro.rios at avatar.com.co> and
Modified: trunk/cdr/cdr_syslog.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_syslog.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_syslog.c (original)
+++ trunk/cdr/cdr_syslog.c Fri Feb 26 02:45:11 2010
@@ -16,9 +16,10 @@
* at the top of the source tree.
*/
-/*! \file cdr_syslog.c
- *
+/*!
+ * \file
* \brief syslog CDR logger
+ *
* \author Sean Bright <sean at malleable.com>
*
* See also
Modified: trunk/cdr/cdr_tds.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_tds.c?view=diff&rev=249058&r1=249057&r2=249058
==============================================================================
--- trunk/cdr/cdr_tds.c (original)
+++ trunk/cdr/cdr_tds.c Fri Feb 26 02:45:11 2010
@@ -24,7 +24,8 @@
* \ingroup cdr_drivers
*/
-/*! \verbatim
+/*!
+ * \verbatim
*
* Table Structure for `cdr`
*
@@ -74,8 +75,8 @@
#define DATE_FORMAT "%Y/%m/%d %T"
-static char *name = "FreeTDS (MSSQL)";
-static char *config = "cdr_tds.conf";
+static const char name[] = "FreeTDS (MSSQL)";
+static const char config[] = "cdr_tds.conf";
struct cdr_tds_config {
AST_DECLARE_STRING_FIELDS(
More information about the asterisk-commits
mailing list