void
ldap_enable_translation( LDAP *ld, LDAPMessage *entry, int enable )
{
- char *optionsp;
+ short *optionsp;
optionsp = ( entry == NULLMSG ) ? &ld->ld_lberoptions :
&entry->lm_ber->ber_options;
typedef unsigned char Byte;
typedef struct { Byte a, b; } Couple;
-static Byte *c_to_hh LDAP_P(( Byte *o, Byte c ));
-static Byte *c_to_cc LDAP_P(( Byte *o, Couple *cc, Byte c ));
-static int hh_to_c LDAP_P(( Byte *h ));
-static Byte *cc_to_t61 LDAP_P(( Byte *o, Byte *s ));
+/* Prototypes without LDAP_P():
+ * 'Byte' in definition incompatible with unprototyped declaration. */
+static Byte *c_to_hh ( Byte *o, Byte c );
+static Byte *c_to_cc ( Byte *o, Couple *cc, Byte c );
+static int hh_to_c ( Byte *h );
+static Byte *cc_to_t61 ( Byte *o, Byte *s );
/*
Character choosed as base in diacritics alone: NO-BREAK SPACE.
while ( *s ) {
if ( *s == '\\' ) {
- if ( (c = hh_to_c( ++s )) != -1 ) {
+ if ( (c = hh_to_c( (Byte *) ++s )) != -1 ) {
*o++ = c;
s += 2;
} else