Update of /usr/cvsroot/asterisk/res
In directory localhost.localdomain:/tmp/cvs-serv21988/res

Modified Files:
        res_odbc.c 
Log Message:
clean up compiler warnings during build on 64-bit systems


Index: res_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_odbc.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- res_odbc.c  6 Jun 2005 22:12:19 -0000       1.15
+++ res_odbc.c  8 Jul 2005 17:06:54 -0000       1.16
@@ -426,7 +426,7 @@
 odbc_status odbc_obj_connect(odbc_obj *obj)
 {
        int res;
-       long int err;
+       int err;
        short int mlen;
        char msg[200], stat[10];
 
@@ -481,7 +481,7 @@
                SQLGetDiagRec(SQL_HANDLE_DBC, obj->con, 1, stat, &err, msg, 
100, &mlen);
                SQLFreeHandle(SQL_HANDLE_ENV, obj->env);
                ast_mutex_unlock(&obj->lock);
-               ast_log(LOG_WARNING, "res_odbc: Error SQLConnect=%d errno=%ld 
%s\n", res, err, msg);
+               ast_log(LOG_WARNING, "res_odbc: Error SQLConnect=%d errno=%d 
%s\n", res, err, msg);
                return ODBC_FAIL;
        } else {
 

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to