]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/charset.c
Fixed typo in
[openldap] / libraries / libldap / charset.c
index b3c835e487796a976bfc26859397679f39a98b78..430eaa98d2c2ad61bc238853363c079b5020f29b 100644 (file)
@@ -39,7 +39,7 @@ ldap_set_string_translators( LDAP *ld, BERTranslateProc encode_proc,
 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;
@@ -160,10 +160,12 @@ ldap_translate_to_t61( LDAP *ld, char **bufp, unsigned long *lenp,
 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.
@@ -1025,7 +1027,6 @@ ldap_t61_to_8859( char **bufp, unsigned long *buflenp, int free_input )
   unsigned int  n;
   int           c;
   unsigned long len;
-  Couple        *cc;
 
   Debug( LDAP_DEBUG_TRACE, "ldap_t61_to_8859 input length: %ld\n",
        *buflenp, 0, 0 );
@@ -1674,7 +1675,7 @@ char      *s;
 
   while ( *s ) {
     if ( *s == '\\' ) {
-      if ( (c = hh_to_c( ++s )) != -1 ) {
+      if ( (c = hh_to_c( (Byte *) ++s )) != -1 ) {
        *o++ = c;
        s += 2;
       } else