mirror of
git://git.gnupg.org/gnupg.git
synced 2025-06-25 21:37:58 +02:00
dirmngr:w32: Fix ldap_* types
* dirmngr/ks-engine-ldap.c: when compiling with Windows/MinGW headers, `ldap_parse_page_control` and `ldap_parse_result` expects `ULONG`. This has become a hard error when using GCC 15. Signed-off-by: Zhang Maiyun <me@maiyun.me>
This commit is contained in:
parent
49a9171f63
commit
b3dc2305e1
@ -1356,10 +1356,16 @@ search_and_parse (ctrl_t ctrl, const char *keyspec,
|
|||||||
char **attrs, LDAPMessage **r_message)
|
char **attrs, LDAPMessage **r_message)
|
||||||
{
|
{
|
||||||
gpg_error_t err = 0;
|
gpg_error_t err = 0;
|
||||||
int l_err, l_reserr;
|
int l_err;
|
||||||
|
#ifdef HAVE_W32_SYSTEM
|
||||||
|
ULONG l_reserr;
|
||||||
|
ULONG totalcount = 0;
|
||||||
|
#else
|
||||||
|
int l_reserr;
|
||||||
|
unsigned int totalcount = 0;
|
||||||
|
#endif
|
||||||
LDAPControl *srvctrls[2] = { NULL, NULL };
|
LDAPControl *srvctrls[2] = { NULL, NULL };
|
||||||
int count;
|
int count;
|
||||||
unsigned int totalcount = 0;
|
|
||||||
LDAPControl *pagectrl = NULL;
|
LDAPControl *pagectrl = NULL;
|
||||||
LDAPControl **resctrls = NULL;
|
LDAPControl **resctrls = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user