[asterisk-commits] murf: branch group/newcdr r162990 - /team/group/newcdr/cel/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 10 17:33:46 CST 2008
Author: murf
Date: Wed Dec 10 17:33:45 2008
New Revision: 162990
URL: http://svn.digium.com/view/asterisk?view=rev&rev=162990
Log:
more changes to avoid compiler warnings
Modified:
team/group/newcdr/cel/cel_csv.c
team/group/newcdr/cel/cel_radius.c
Modified: team/group/newcdr/cel/cel_csv.c
URL: http://svn.digium.com/view/asterisk/team/group/newcdr/cel/cel_csv.c?view=diff&rev=162990&r1=162989&r2=162990
==============================================================================
--- team/group/newcdr/cel/cel_csv.c (original)
+++ team/group/newcdr/cel/cel_csv.c Wed Dec 10 17:33:45 2008
@@ -266,7 +266,7 @@
return -1;
}
-static int writefile(char *s, char *acc)
+static int writefile(char *s, const char *acc)
{
char tmp[PATH_MAX];
FILE *f;
@@ -351,7 +351,7 @@
}
ast_mutex_unlock(&mf_lock);
if (!ast_strlen_zero(accountcode)) {
- if (writefile(buf, (char*)accountcode))
+ if (writefile(buf, accountcode))
ast_log(LOG_WARNING, "Unable to write CSV record to account file '%s' : %s\n", accountcode, strerror(errno));
}
}
Modified: team/group/newcdr/cel/cel_radius.c
URL: http://svn.digium.com/view/asterisk/team/group/newcdr/cel/cel_radius.c?view=diff&rev=162990&r1=162989&r2=162990
==============================================================================
--- team/group/newcdr/cel/cel_radius.c (original)
+++ team/group/newcdr/cel/cel_radius.c Wed Dec 10 17:33:45 2008
@@ -93,7 +93,7 @@
static struct ast_event_sub *event_sub = 0;
static int build_radius_record(VALUE_PAIR **send, enum ast_cel_eventtype eventtype,
- struct timeval eventtime, char *userdefname, const char *cid_name,
+ struct timeval eventtime, const char *userdefname, const char *cid_name,
const char *cid_num, const char *cid_ani,
const char *cid_rdnis, const char *cid_dnid, const char *exten,
const char *context, const char *channame, const char *appname,
@@ -221,7 +221,7 @@
linkedid = ast_event_get_ie_str(event, AST_EVENT_IE_CEL_LINKEDID);
amaflag = ast_event_get_ie_uint(event, AST_EVENT_IE_CEL_AMAFLAGS);
- if (build_radius_record(&send, eventtype, eventtime, (char*)userdefname, cid_name, cid_num,
+ if (build_radius_record(&send, eventtype, eventtime, userdefname, cid_name, cid_num,
cid_ani, cid_rdnis, cid_dnid, exten, context, channame,
appname, appdata, accountcode, uniqueid, amaflag, linkedid)) {
if (option_debug)
More information about the asterisk-commits
mailing list