aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2024-03-21 09:38:59 +0800
committerIan Kent <raven@themaw.net>2024-03-21 09:46:09 +0800
commit57f817bf3afce8df3a193f8d1fa93676c3831442 (patch)
tree141a5ab0439afafb2b737df124b08e9b388f7c3d
parent69a5b66ffd28a3a85dc1bf614e6c8beed39f4abb (diff)
downloadautofs-57f817bf3afce8df3a193f8d1fa93676c3831442.tar.gz
autofs-5.1.9 - fix ldap_parse_page_control() check
The final @cookie parameter should be a struct berval ** type. The check currently fails when -Werror=incompatible-pointer-types is set: conftest.c: In function 'main': conftest.c:54:47: error: passing argument 4 of 'ldap_parse_page_control' from incompatible pointer type [-Werror=incompatible-pointer-types] 54 | ret = ldap_parse_page_control(ld,clp,ct,c); | ^ | | | struct berval * In file included from /usr/include/lber_types.h:24, from /usr/include/lber.h:29, from /usr/include/ldap.h:30, from conftest.c:45: /usr/include/ldap.h:2155:25: note: expected 'struct berval **' but argument is of type 'struct berval *' 2155 | ldap_parse_page_control LDAP_P(( Signed-off-by: David Disseldorp <ddiss@suse.de>
-rw-r--r--aclocal.m42
-rwxr-xr-xconfigure2
2 files changed, 2 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 1046d72b..fa18eb1d 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -424,7 +424,7 @@ AC_LINK_IFELSE(
#include <ldap.h> ]],
[[ LDAP *ld;
ber_int_t *ct;
- struct berval *c;
+ struct berval **c;
int ret;
LDAPControl **clp;
ret = ldap_parse_page_control(ld,clp,ct,c); ]])],
diff --git a/configure b/configure
index 3dc07f63..22ac5e1b 100755
--- a/configure
+++ b/configure
@@ -5653,7 +5653,7 @@ main (void)
{
LDAP *ld;
ber_int_t *ct;
- struct berval *c;
+ struct berval **c;
int ret;
LDAPControl **clp;
ret = ldap_parse_page_control(ld,clp,ct,c);