From cde93a6e0669e99dd9aaa6425192faf0c930f0e6 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 18 Jul 1999 01:20:45 +0000 Subject: [PATCH] make ldap.ld_lberoptions unsigned, like berelement.ber_options --- libraries/libldap/charset.c | 2 +- libraries/libldap/ldap-int.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libldap/charset.c b/libraries/libldap/charset.c index be85707a83..91cf3e2429 100644 --- a/libraries/libldap/charset.c +++ b/libraries/libldap/charset.c @@ -40,7 +40,7 @@ ldap_set_string_translators( LDAP *ld, BERTranslateProc encode_proc, void ldap_enable_translation( LDAP *ld, LDAPMessage *entry, int enable ) { - short *optionsp; + unsigned short *optionsp; optionsp = ( entry == NULL ) ? &ld->ld_lberoptions : &entry->lm_ber->ber_options; diff --git a/libraries/libldap/ldap-int.h b/libraries/libldap/ldap-int.h index 3ab44dacec..6b1ca1a027 100644 --- a/libraries/libldap/ldap-int.h +++ b/libraries/libldap/ldap-int.h @@ -226,7 +226,7 @@ struct ldap { char *ld_host; int ld_port; - short ld_lberoptions; + unsigned short ld_lberoptions; LDAPFiltDesc *ld_filtd; /* from getfilter for ufn searches */ char *ld_ufnprefix; /* for incomplete ufn's */ -- 2.39.5