X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd5bf2a6e3a7d03e8b1f97e989eecdcc63f7151f..16d38102e8ad5534d185cc532b9aa8077a75e0a4:/src/iodbc/hdbc.c diff --git a/src/iodbc/hdbc.c b/src/iodbc/hdbc.c index 67eb5e6865..afb6472d19 100644 --- a/src/iodbc/hdbc.c +++ b/src/iodbc/hdbc.c @@ -24,20 +24,20 @@ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include +#include "config.h" -#include -#include +#include "isql.h" +#include "isqlext.h" -#include +#include "dlproc.h" -#include -#include -#include -#include +#include "herr.h" +#include "henv.h" +#include "hdbc.h" +#include "hstmt.h" -#include -#include +#include "itrace.h" +#include "stdio.h" extern RETCODE _iodbcdm_driverunload(); @@ -176,7 +176,6 @@ SQLSetConnectOption ( UWORD fOption, UDWORD vParam) { - GENV_t FAR *genv; DBC_t FAR *pdbc = (DBC_t FAR *) hdbc; STMT_t FAR *pstmt; HPROC hproc = SQL_NULL_HPROC; @@ -511,7 +510,6 @@ SQLGetConnectOption ( UWORD fOption, PTR pvParam) { - GENV_t FAR *genv; DBC_t FAR *pdbc = (DBC_t FAR *) hdbc; int sqlstat = en_00000; HPROC hproc = SQL_NULL_HPROC; @@ -764,7 +762,7 @@ SQLTransact ( GENV_t FAR *genv = (GENV_t FAR *) henv; DBC_t FAR *pdbc = (DBC_t FAR *) hdbc; HERR herr; - RETCODE retcode; + RETCODE retcode = 0; if (hdbc != SQL_NULL_HDBC) {