From 52e57a195abebeb467b2c6728e3e472647086739 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 3 Mar 1999 15:45:06 +0000 Subject: [PATCH] ber_scanf returns LBER_ERROR, not -1, on failure. --- libraries/liblber/dtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.39.5