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
This commit is contained in:
Sean Bright
2008-06-30 11:57:42 +00:00
parent 1f7a4fb63d
commit dd0c0f3d38
2 changed files with 9 additions and 19 deletions

View File

@@ -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);