From dd0c0f3d38a7444fca61f5dae6819effb56322a8 Mon Sep 17 00:00:00 2001
From: Sean Bright <sean@malleable.com>
Date: Mon, 30 Jun 2008 11:57:42 +0000
Subject: [PATCH] Cast a few more strings to char *, so that we can compile
 cleanly against FreeTDS 0.60.  Update the docs to reflect that we can now
 compile and run against all modern releases of FreeTDS (0.60 through 0.82)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 cdr/cdr_tds.c       |  8 ++++----
 doc/tex/freetds.tex | 20 +++++---------------
 2 files changed, 9 insertions(+), 19 deletions(-)

diff --git a/cdr/cdr_tds.c b/cdr/cdr_tds.c
index 2f17cac2da..9688c167c9 100644
--- a/cdr/cdr_tds.c
+++ b/cdr/cdr_tds.c
@@ -299,10 +299,10 @@ static int mssql_connect(void)
 	}
 
 	DBSETLAPP(login,     "TSQL");
-	DBSETLUSER(login,    settings->username);
-	DBSETLPWD(login,     settings->password);
-	DBSETLCHARSET(login, settings->charset);
-	DBSETLNATLANG(login, settings->language);
+	DBSETLUSER(login,    (char *) settings->username);
+	DBSETLPWD(login,     (char *) settings->password);
+	DBSETLCHARSET(login, (char *) settings->charset);
+	DBSETLNATLANG(login, (char *) settings->language);
 
 	if ((settings->dbproc = dbopen(login, (char *) settings->hostname)) == NULL) {
 		ast_log(LOG_ERROR, "Unable to connect to %s\n", settings->hostname);
diff --git a/doc/tex/freetds.tex b/doc/tex/freetds.tex
index 8dcbec29a2..8db589f097 100644
--- a/doc/tex/freetds.tex
+++ b/doc/tex/freetds.tex
@@ -1,16 +1,6 @@
-The cdr\_tds module is NOT compatible with version 0.63 of FreeTDS.
-
-The cdr\_tds module is known to work with FreeTDS version 0.62.1;
-it should also work with 0.62.2, 0.62.3 and 0.62.4, which are bug
-fix releases.
-
-The cdr\_tds module uses the raw "libtds" API of FreeTDS. It appears
-that from 0.63 onwards, this is not considered a published API
-of FreeTDS and is subject to change without notice.
-
-Between 0.62.x and 0.63 of FreeTDS, many incompatible changes
-have been made to the libtds API.
-
-For newer versions of FreeTDS, it is recommended that you use the
-ODBC driver.
+The cdr\_tds module now works with most modern release versions of FreeTDS (from
+at least 0.60 through 0.82).  Although versions of FreeTDS prior to 0.82 will
+work, we recommend using the latest available version for performance and
+stability reasons.
 
+The latest release of FreeTDS is available from http://www.freetds.org/
-- 
GitLab