[asterisk-commits] seanbright: branch seanbright/cdr-tds-conversion r124703 - /team/seanbright/c...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 23 06:54:56 CDT 2008
Author: seanbright
Date: Mon Jun 23 06:54:55 2008
New Revision: 124703
URL: http://svn.digium.com/view/asterisk?view=rev&rev=124703
Log:
Older versions of FreeTDS (pre 0.82) took char *s instead of const char *s, so
to avoid warnings while using stringfields, always cast these to normal char *s.
Modified:
team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c
Modified: team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c
URL: http://svn.digium.com/view/asterisk/team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c?view=diff&rev=124703&r1=124702&r2=124703
==============================================================================
--- team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c (original)
+++ team/seanbright/cdr-tds-conversion/cdr/cdr_tds.c Mon Jun 23 06:54:55 2008
@@ -307,12 +307,12 @@
DBSETLCHARSET(settings->login, settings->charset);
DBSETLNATLANG(settings->login, settings->language);
- if ((settings->dbproc = dbopen(settings->login, settings->hostname)) == NULL) {
+ if ((settings->dbproc = dbopen(settings->login, (char *) settings->hostname)) == NULL) {
ast_log(LOG_ERROR, "Unable to connect to %s\n", settings->hostname);
return -1;
}
- if (dbuse(settings->dbproc, settings->database) == FAIL) {
+ if (dbuse(settings->dbproc, (char *) settings->database) == FAIL) {
ast_log(LOG_ERROR, "Unable to select database %s\n", settings->database);
return -1;
}
More information about the asterisk-commits
mailing list