diff options
author | randomdan <randomdan@localhost> | 2012-05-30 23:59:34 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2012-05-30 23:59:34 +0000 |
commit | 8d304c22ac85ac340c7edb82e1fef7faec9c9cd7 (patch) | |
tree | cc1d852c521701636c6be8f4196fbb586c8ae7a6 | |
parent | A stream interface, an RDBMS bulk load interface, a decompression layer, an i... (diff) | |
download | libdbpp-odbc-8d304c22ac85ac340c7edb82e1fef7faec9c9cd7.tar.bz2 libdbpp-odbc-8d304c22ac85ac340c7edb82e1fef7faec9c9cd7.tar.xz libdbpp-odbc-8d304c22ac85ac340c7edb82e1fef7faec9c9cd7.zip |
Fix printf warnings on 64bit
-rw-r--r-- | libodbcpp/error.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libodbcpp/error.cpp b/libodbcpp/error.cpp index e971714..7707401 100644 --- a/libodbcpp/error.cpp +++ b/libodbcpp/error.cpp @@ -20,13 +20,13 @@ odbc_verror(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const * case SQL_SUCCESS: case SQL_SUCCESS_WITH_INFO: if (msg) { - if (asprintf(msg, "%d: %ld: %5.5s: \"%s\" while attempting to %s", - err, sqlerr, sqlstatus, sqlerrmsg, action) < 1) { + if (asprintf(msg, "%d: %d: %5.5s: \"%s\" while attempting to %s", + err, (int)sqlerr, sqlstatus, sqlerrmsg, action) < 1) { *msg = NULL; } } - syslog(LOG_WARNING, "%s: %d: %ld: %5.5s: \"%s\" while attempting to %s", - __FUNCTION__, err, sqlerr, sqlstatus, sqlerrmsg, action); + syslog(LOG_WARNING, "%s: %d: %d: %5.5s: \"%s\" while attempting to %s", + __FUNCTION__, err, (int)sqlerr, sqlstatus, sqlerrmsg, action); break; case SQL_INVALID_HANDLE: |