]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/error.c
Commit preliminary fix for ldap.conf base usage.
[openldap] / libraries / libldap / error.c
index c8b0d3e8a03e0e09407fb0d2c735bc684930b43b..4fe8f855c62d49a7963ba2912a127b1c668a9534 100644 (file)
@@ -79,10 +79,10 @@ ldap_err2string( int err )
        return( "Unknown error" );
 }
 
-#ifdef LDAP_LIBUI
 void
 ldap_perror( LDAP *ld, char *s )
 {
+#ifdef LDAP_LIBUI
        int     i;
 
        Debug( LDAP_DEBUG_TRACE, "ldap_perror\n", 0, 0, 0 );
@@ -109,17 +109,8 @@ ldap_perror( LDAP *ld, char *s )
 
        fprintf( stderr, "%s: Not an LDAP errno %d\n", s, ld->ld_errno );
        fflush( stderr );
-}
-
-#else
-
-void
-ldap_perror( LDAP *ld, char *s )
-{
-}
-
 #endif /* !LDAP_LIBUI */
-
+}
 
 int
 ldap_result2error( LDAP *ld, LDAPMessage *r, int freeit )