mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
dirmngr,w32: Silence compiler warnings for the LDAP API.
--
This commit is contained in:
parent
dfc01118ce
commit
cc1d475f98
3 changed files with 26 additions and 2 deletions
|
@ -544,8 +544,13 @@ my_ldap_connect (parsed_uri_t uri, LDAP **ldap_connp,
|
|||
}
|
||||
else if (bindname)
|
||||
{
|
||||
|
||||
npth_unprotect ();
|
||||
lerr = ldap_simple_bind_s (ldap_conn, bindname, password);
|
||||
/* Older Windows header dont have the const for the last two args.
|
||||
* Thus we need to cast to avoid warnings. */
|
||||
lerr = ldap_simple_bind_s (ldap_conn,
|
||||
(char * const)bindname,
|
||||
(char * const)password);
|
||||
npth_protect ();
|
||||
if (lerr != LDAP_SUCCESS)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue