wait at most \fItimelimit\fP seconds for a search to complete.
.TP
.B \-z sizelimit
-retrieve at most \fIsizelimit\fP seconds for a search to complete.
+retrieve at most \fIsizelimit\fP entries for a search.
.SH OUTPUT FORMAT
If one or more entries are found, each entry is written to standard output
in the form:
/*
* in bprint.c:
*/
-LDAP_F void lber_bprint LDAP_P(( char *data, int len ));
+LDAP_F void ber_print_error LDAP_P(( char *data ));
+LDAP_F void ber_bprint LDAP_P(( char *data, int len ));
+#define lber_bprint(d,l) ber_bprint((d),(l))
/*
* in decode.c:
#include "portable.h"
-#if defined( LDAP_DEBUG ) && defined( LDAP_LIBUI )
#include <stdio.h>
+#if defined( LDAP_DEBUG ) && defined( LDAP_LIBUI )
#include <ac/ctype.h>
#include <ac/string.h>
#endif /* LDAP_DEBUG && LDAP_LIBUI */
#include "lber-int.h"
/*
- * Print arbitrary stuff, for debugging.
+ * Print stuff
*/
+void
+ber_print_error( char *data)
+{
+ fputs( data, stderr );
+ fflush( stderr );
+}
+/*
+ * Print arbitrary stuff, for debugging.
+ */
void
-lber_bprint( char *data, int len )
+ber_bprint( char *data, int len )
{
#if defined( LDAP_DEBUG ) && defined( LDAP_LIBUI )
#define BPLEN 48
data++;
if ( i > BPLEN - 2 ) {
- fprintf( stderr, "\t%s\n", out );
+ char data[128 + BPLEN];
+ sprintf( data, "\t%s\n", out );
+ ber_print_error(data);
memset( out, 0, BPLEN );
i = 0;
continue;