[asterisk-commits] tilghman: branch 1.8 r279113 - /branches/1.8/res/res_odbc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 23 13:56:08 CDT 2010
Author: tilghman
Date: Fri Jul 23 13:56:04 2010
New Revision: 279113
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=279113
Log:
Silly 64-bit compilers (who uses 64-bit anyway?)
Modified:
branches/1.8/res/res_odbc.c
Modified: branches/1.8/res/res_odbc.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_odbc.c?view=diff&rev=279113&r1=279112&r2=279113
==============================================================================
--- branches/1.8/res/res_odbc.c (original)
+++ branches/1.8/res/res_odbc.c Fri Jul 23 13:56:04 2010
@@ -1479,8 +1479,8 @@
ast_mutex_unlock(&obj->lock);
return ODBC_FAIL;
}
- SQLSetConnectAttr(obj->con, SQL_LOGIN_TIMEOUT, (SQLPOINTER *) obj->parent->conntimeout, 0);
- SQLSetConnectAttr(obj->con, SQL_ATTR_CONNECTION_TIMEOUT, (SQLPOINTER *) obj->parent->conntimeout, 0);
+ SQLSetConnectAttr(obj->con, SQL_LOGIN_TIMEOUT, (SQLPOINTER *)(long) obj->parent->conntimeout, 0);
+ SQLSetConnectAttr(obj->con, SQL_ATTR_CONNECTION_TIMEOUT, (SQLPOINTER *)(long) obj->parent->conntimeout, 0);
#ifdef NEEDTRACE
SQLSetConnectAttr(obj->con, SQL_ATTR_TRACE, &enable, SQL_IS_INTEGER);
SQLSetConnectAttr(obj->con, SQL_ATTR_TRACEFILE, tracefile, strlen(tracefile));
More information about the asterisk-commits
mailing list