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

version 1.29, 2003/01/03 19:20:50 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: pkg/ldap/libraries/liblber/dtest.c,v 1.28 2002/04/02 16:40:04 kurt Exp $ */  /* $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 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);
                 perror( "ber_get_next" );                  if( tag == LBER_ERROR ) {
                 return( EXIT_FAILURE );                          if( errno == EWOULDBLOCK ) continue;
                           if( errno == EAGAIN ) continue;
                           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",

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


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