X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fldapd%2Futil.c;h=4baccd6a04ca61ee7bdf4ac43f190082c9f8fc65;hb=4863d98084d150cef8a8cd4a3094576fdfebe641;hp=965d1cd78ca6ad038a6daf875c511c1df5bbd888;hpb=18a3335172a50be2527efa97d5e15a529049abd0;p=openldap diff --git a/servers/ldapd/util.c b/servers/ldapd/util.c index 965d1cd78c..4baccd6a04 100644 --- a/servers/ldapd/util.c +++ b/servers/ldapd/util.c @@ -53,8 +53,8 @@ bprint( char *data, int len ) out[ i ] = ' '; out[ i+1 ] = *data; } else { - out[ i ] = hexdig[ ( *data & 0xf0 ) >> 4 ]; - out[ i+1 ] = hexdig[ *data & 0x0f ]; + out[ i ] = hexdig[ ( (unsigned char)*data & 0xf0 ) >> 4 ]; + out[ i+1 ] = hexdig[ (unsigned char)*data & 0x0f ]; } i += 2; len--; @@ -70,7 +70,8 @@ bprint( char *data, int len ) } } -void charlist_free( char **cl ) +void +charlist_free( char **cl ) { int i; @@ -86,7 +87,6 @@ int get_ava( BerElement *ber, AVA *tava ) { char *type, *value; - extern short ldap_dn_syntax; Debug( LDAP_DEBUG_TRACE, "get_ava\n", 0, 0, 0 ); @@ -132,7 +132,6 @@ chase_referral( struct access_point *ap; int rc, bound; struct conn *save, *dup, *found; - struct PSAPaddr *psap_cpy(); Debug( LDAP_DEBUG_TRACE, "chase_referral\n", 0, 0, 0 );