Diff for /libraries/liblber/dtest.c between versions 1.27.2.3 and 1.30

version 1.27.2.3, 2003/05/22 22:22:36 version 1.30, 2003/05/19 08:37:09
Line 1 Line 1
 /* dtest.c - lber decoding test program */  /* dtest.c - lber decoding test program */
 /* $OpenLDAP$ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/dtest.c,v 1.29 2003/01/03 19:20:50 kurt Exp $ */
 /*  /*
  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 76  main( int argc, char **argv ) Line 76  main( int argc, char **argv )
   
         for (;;) {          for (;;) {
                 tag = ber_get_next( sb, &len, ber);                  tag = ber_get_next( sb, &len, ber);
                 if( tag != LBER_ERROR ) break;                  if( tag == LBER_ERROR ) {
                           if( errno == EWOULDBLOCK ) continue;
                 if( errno == EWOULDBLOCK ) continue;                          if( errno == EAGAIN ) continue;
                 if( errno == EAGAIN ) continue;                          perror( "ber_get_next" );
                           return( EXIT_FAILURE );
                 perror( "ber_get_next" );                  }
                 return( EXIT_FAILURE );  
         }          }
   
         printf("decode: message tag 0x%lx and length %ld\n",          printf("decode: message tag 0x%lx and length %ld\n",
                 (unsigned long) tag, (long) len );                  (unsigned long) tag, (long) len );
   
         for( s = argv[1]; *s; s++ ) {          for( s = argv[1]; *s; s++ ) {
                 char buf[128];                  char buf[128];

Removed from v.1.27.2.3  
changed lines
  Added in v.1.30


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org