gentoo-ebuilds/net-nds/openldap/files/openldap-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
Sam James ebf52f19f7
net-nds/openldap: fix another Modern C issue
Closes: https://bugs.gentoo.org/938581
Thanks-to: Attila Tóth <atoth@atoth.sote.hu>
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-18 04:05:06 +00:00

12 lines
504 B
Diff

https://bugs.gentoo.org/938581#c5
--- a/servers/slapd/back-sql/sql-wrap.c
+++ b/servers/slapd/back-sql/sql-wrap.c
@@ -37,7 +37,7 @@ backsql_PrintErrors( SQLHENV henv, SQLHD
{
SQLCHAR msg[SQL_MAX_MESSAGE_LENGTH]; /* msg. buffer */
SQLCHAR state[SQL_SQLSTATE_SIZE]; /* statement buf. */
- SDWORD iSqlCode; /* return code */
+ SQLINTEGER iSqlCode; /* return code */
SWORD len = SQL_MAX_MESSAGE_LENGTH - 1; /* return length */
Debug( LDAP_DEBUG_TRACE, "Return code: %d\n", rc );