int ldap_log_printf
#ifdef HAVE_STDARG
- ( LDAP *ld, int loglvl, char *fmt, ... )
+ ( LDAP *ld, int loglvl, const char *fmt, ... )
#else
( va_alist )
va_dcl
#ifdef HAVE_STDARG
va_start( ap, fmt );
#else
- LD *ld
+ LDAP *ld;
int loglvl;
char *fmt;
va_start( ap );
- errlvl = va_arg( ap, LD * );
+ ld = va_arg( ap, LDAP * );
loglvl = va_arg( ap, int );
fmt = va_arg( ap, char * );
#endif
va_end(ap);
- (*lber_pvt_log_print)( buf );
- return 1;
-}
-
-static int lber_log_puts(int errlvl, int loglvl, char *buf)
-{
- if ( !ldap_log_check( errlvl, loglvl )) {
- return 0;
- }
-
- (*lber_pvt_log_print)( buf );
+ (*ber_pvt_log_print)( buf );
return 1;
}