mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
use the proper variable type for these unixODBC API calls, eliminating warnings on 64-bit platforms that use the 'new' 64-bit types for ODBC API calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -104,7 +104,7 @@ static int acf_odbc_write(struct ast_channel *chan, char *cmd, char *s, const ch
|
|||||||
AST_APP_ARG(field)[100];
|
AST_APP_ARG(field)[100];
|
||||||
);
|
);
|
||||||
SQLHSTMT stmt;
|
SQLHSTMT stmt;
|
||||||
SQLINTEGER rows=0;
|
SQLLEN rows=0;
|
||||||
|
|
||||||
AST_LIST_LOCK(&queries);
|
AST_LIST_LOCK(&queries);
|
||||||
AST_LIST_TRAVERSE(&queries, query, list) {
|
AST_LIST_TRAVERSE(&queries, query, list) {
|
||||||
@@ -202,7 +202,7 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf
|
|||||||
);
|
);
|
||||||
SQLHSTMT stmt;
|
SQLHSTMT stmt;
|
||||||
SQLSMALLINT colcount=0;
|
SQLSMALLINT colcount=0;
|
||||||
SQLINTEGER indicator;
|
SQLLEN indicator;
|
||||||
|
|
||||||
AST_LIST_LOCK(&queries);
|
AST_LIST_LOCK(&queries);
|
||||||
AST_LIST_TRAVERSE(&queries, query, list) {
|
AST_LIST_TRAVERSE(&queries, query, list) {
|
||||||
|
@@ -72,7 +72,7 @@ static struct ast_variable *realtime_odbc(const char *database, const char *tabl
|
|||||||
SQLSMALLINT datatype;
|
SQLSMALLINT datatype;
|
||||||
SQLSMALLINT decimaldigits;
|
SQLSMALLINT decimaldigits;
|
||||||
SQLSMALLINT nullable;
|
SQLSMALLINT nullable;
|
||||||
SQLINTEGER indicator;
|
SQLLEN indicator;
|
||||||
va_list aq;
|
va_list aq;
|
||||||
|
|
||||||
va_copy(aq, ap);
|
va_copy(aq, ap);
|
||||||
@@ -222,7 +222,7 @@ static struct ast_config *realtime_multi_odbc(const char *database, const char *
|
|||||||
SQLSMALLINT datatype;
|
SQLSMALLINT datatype;
|
||||||
SQLSMALLINT decimaldigits;
|
SQLSMALLINT decimaldigits;
|
||||||
SQLSMALLINT nullable;
|
SQLSMALLINT nullable;
|
||||||
SQLINTEGER indicator;
|
SQLLEN indicator;
|
||||||
|
|
||||||
va_list aq;
|
va_list aq;
|
||||||
va_copy(aq, ap);
|
va_copy(aq, ap);
|
||||||
@@ -449,7 +449,7 @@ struct config_odbc_obj {
|
|||||||
char category[128];
|
char category[128];
|
||||||
char var_name[128];
|
char var_name[128];
|
||||||
char var_val[1024]; /* changed from 128 to 1024 via bug 8251 */
|
char var_val[1024]; /* changed from 128 to 1024 via bug 8251 */
|
||||||
SQLINTEGER err;
|
SQLLEN err;
|
||||||
};
|
};
|
||||||
|
|
||||||
static SQLHSTMT config_odbc_prepare(struct odbc_obj *obj, void *data)
|
static SQLHSTMT config_odbc_prepare(struct odbc_obj *obj, void *data)
|
||||||
|
Reference in New Issue
Block a user