mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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 );
|
||||
@@ -148,6 +148,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.6.1-system-mdb.patch
|
||||
"${FILESDIR}"/${PN}-2.6.1-cloak.patch
|
||||
"${FILESDIR}"/${PN}-2.6.1-flags.patch
|
||||
"${FILESDIR}"/${PN}-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
|
||||
#"${FILESDIR}"/${PN}-2.6.x-slapd-pointer-types.patch # needs backport
|
||||
)
|
||||
|
||||
|
||||
@@ -149,6 +149,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.6.1-flags.patch
|
||||
"${FILESDIR}"/${PN}-2.6.1-fix-missing-mapping.v2.patch
|
||||
"${FILESDIR}"/${PN}-2.6.x-gnutls-pointer-error.patch
|
||||
"${FILESDIR}"/${PN}-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
|
||||
)
|
||||
|
||||
openldap_filecount() {
|
||||
|
||||
@@ -151,6 +151,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.6.1-cloak.patch
|
||||
"${FILESDIR}"/${PN}-2.6.1-flags.patch
|
||||
"${FILESDIR}"/${PN}-2.6.1-fix-missing-mapping.v2.patch
|
||||
"${FILESDIR}"/${PN}-2.5.19-gcc14-SDWORD-vs-SQLINTEGER.patch
|
||||
)
|
||||
|
||||
openldap_filecount() {
|
||||
|
||||
Reference in New Issue
Block a user