From 8c3b217fe7c8cd99be7513e681572ed21be29a7f Mon Sep 17 00:00:00 2001 From: Florian Lindner Date: Sun, 25 Jun 2023 00:08:13 +0200 Subject: [PATCH] odbcBackend: fix type identifier, link elektra-kdb - fix errors reported from macOS CI jobs --- src/plugins/backend_odbc/CMakeLists.txt | 2 +- src/plugins/backend_odbc/backend_odbc_set.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/backend_odbc/CMakeLists.txt b/src/plugins/backend_odbc/CMakeLists.txt index d3d6a5ed942..08b5ac77cf3 100644 --- a/src/plugins/backend_odbc/CMakeLists.txt +++ b/src/plugins/backend_odbc/CMakeLists.txt @@ -20,6 +20,6 @@ add_plugin ( backend_odbc_set.h backend_odbc_set.c INCLUDE_DIRECTORIES ${ODBC_INCLUDE_DIRS} - LINK_ELEKTRA elektra-ease + LINK_ELEKTRA elektra-ease elektra-kdb LINK_LIBRARIES ${ODBC_LIBRARIES} ADD_TEST COMPONENT libelektra${SO_VERSION}) diff --git a/src/plugins/backend_odbc/backend_odbc_set.c b/src/plugins/backend_odbc/backend_odbc_set.c index b33b5b5b2e6..c18f3a15ac6 100644 --- a/src/plugins/backend_odbc/backend_odbc_set.c +++ b/src/plugins/backend_odbc/backend_odbc_set.c @@ -343,7 +343,7 @@ static bool bindStringsToStatementV (SQLHSTMT sqlStmt, ssize_t startPos, Key * e if (numParams > USHRT_MAX) { ELEKTRA_SET_INTERFACE_ERRORF (errorKey, - "The maximum number of parameter values to bind is %hu, but you specified a number of %u", + "The maximum number of parameter values to bind is %d, but you specified a number of %u", USHRT_MAX, numParams); SQLFreeHandle (SQL_HANDLE_STMT, sqlStmt); return false; @@ -476,7 +476,7 @@ static bool bindKeyNamesToStatement (SQLHSTMT sqlStmt, const KeySet * keysToBind if ((endPosKeySet - startPosKeySet) >= USHRT_MAX) { ELEKTRA_SET_INTERFACE_ERRORF (parentKey, - "The maximum number of parameter values to bind is %hu, but you specified a number of %zd", + "The maximum number of parameter values to bind is %d, but you specified a number of %zd", USHRT_MAX, ksGetSize (keysToBind)); SQLFreeHandle (SQL_HANDLE_STMT, sqlStmt); return false;