Changeset: 16538caec5ae for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/16538caec5ae
Modified Files:
clients/odbc/driver/SQLSpecialColumns.c
clients/odbc/samples/metadata.c
Branch: default
Log Message:
Use correct format to print size_t.
diffs (24 lines):
diff --git a/clients/odbc/driver/SQLSpecialColumns.c
b/clients/odbc/driver/SQLSpecialColumns.c
--- a/clients/odbc/driver/SQLSpecialColumns.c
+++ b/clients/odbc/driver/SQLSpecialColumns.c
@@ -416,7 +416,7 @@ MNDBSpecialColumns(ODBCStmt *stmt,
/* ordering on SCOPE not needed (since it is constant) */
if (pos >= querylen)
- fprintf(stderr, "pos >= querylen, %ld > %ld\n", pos,
querylen);
+ fprintf(stderr, "pos >= querylen, %zu > %zu\n", pos,
querylen);
} else {
assert(IdentifierType == SQL_ROWVER);
/* The backend does not have such info available */
diff --git a/clients/odbc/samples/metadata.c b/clients/odbc/samples/metadata.c
--- a/clients/odbc/samples/metadata.c
+++ b/clients/odbc/samples/metadata.c
@@ -89,7 +89,7 @@ compareResult(SQLHANDLE stmt, SQLRETURN
char buf[2048];
if (outp == NULL) {
- fprintf(stderr, "Failed to allocate %ld memory!\n", outp_len);
+ fprintf(stderr, "Failed to allocate %zu memory!\n", outp_len);
return;
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]