From: Hallvard Furuseth Date: Wed, 3 Mar 1999 15:45:06 +0000 (+0000) Subject: ber_scanf returns LBER_ERROR, not -1, on failure. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~518 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52e57a195abebeb467b2c6728e3e472647086739;p=openldap ber_scanf returns LBER_ERROR, not -1, on failure. --- diff --git a/libraries/liblber/dtest.c b/libraries/liblber/dtest.c index df683a0ec7..1d2a3b8217 100644 --- a/libraries/liblber/dtest.c +++ b/libraries/liblber/dtest.c @@ -62,7 +62,7 @@ main( int argc, char **argv ) } printf( "message has tag 0x%x and length %ld\n", tag, len ); - if ( ber_scanf( ber, "i", &i ) == -1 ) { + if ( ber_scanf( ber, "i", &i ) == LBER_ERROR ) { fprintf( stderr, "ber_scanf returns -1\n" ); exit( 1 ); }