Diff for /libraries/liblber/dtest.c between versions 1.28 and 1.32

version 1.28, 2002/04/02 16:40:04 version 1.32, 2003/05/22 03:32:06
Line 1 Line 1
 /* dtest.c - lber decoding test program */  /* dtest.c - lber decoding test program */
 /* $OpenLDAP: pkg/ldap/libraries/liblber/dtest.c,v 1.27 2002/01/04 20:17:36 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/dtest.c,v 1.31 2003/05/22 01:35:36 kurt Exp $ */
 /*  /*
  * Copyright 1998-2002 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
  */   */
 /* Portions  /* Portions
Line 24 Line 24
 #include <ac/string.h>  #include <ac/string.h>
 #include <ac/socket.h>  #include <ac/socket.h>
 #include <ac/unistd.h>  #include <ac/unistd.h>
   #include <ac/errno.h>
   
 #ifdef HAVE_CONSOLE_H  #ifdef HAVE_CONSOLE_H
 #include <console.h>  #include <console.h>
Line 73  main( int argc, char **argv ) Line 74  main( int argc, char **argv )
                 return( EXIT_FAILURE );                  return( EXIT_FAILURE );
         }          }
   
         tag = ber_get_next( sb, &len, ber);          for (;;) {
         if( tag == LBER_ERROR ) {                  tag = ber_get_next( sb, &len, ber);
                   if( tag != LBER_ERROR ) break;
   
                   if( errno == EWOULDBLOCK ) continue;
                   if( errno == EAGAIN ) continue;
   
                 perror( "ber_get_next" );                  perror( "ber_get_next" );
                 return( EXIT_FAILURE );                  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.28  
changed lines
  Added in v.1.32


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