Diff for /libraries/liblber/dtest.c between versions 1.7 and 1.12

version 1.7, 1998/12/28 19:38:04 version 1.12, 1999/03/03 14:45:06
Line 3 Line 3
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */   */
 /*  /* Portions
  * Copyright (c) 1990 Regents of the University of Michigan.   * Copyright (c) 1990 Regents of the University of Michigan.
  * All rights reserved.   * All rights reserved.
  *   *
Line 49  main( int argc, char **argv ) Line 49  main( int argc, char **argv )
         cshow( stdout );          cshow( stdout );
 #endif /* MACOS */  #endif /* MACOS */
   
         sb = lber_sockbuf_alloc_fd( fileno(stdin) );          sb = lber_pvt_sb_alloc_fd( fileno(stdin) );
   
         if( (ber = ber_alloc_t(LBER_USE_DER)) == NULL ) {          if( (ber = ber_alloc_t(LBER_USE_DER)) == NULL ) {
                 perror( "ber_alloc_t" );                  perror( "ber_alloc_t" );
Line 62  main( int argc, char **argv ) Line 62  main( int argc, char **argv )
         }          }
         printf( "message has tag 0x%x and length %ld\n", tag, len );          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" );                  fprintf( stderr, "ber_scanf returns -1\n" );
                 exit( 1 );                  exit( 1 );
         }          }
         printf( "got int %ld\n", i );          printf( "got int %ld\n", i );
   
         lber_sockbuf_free( sb );          lber_pvt_sb_free( sb );
         return( 0 );          return( 0 );
 }  }

Removed from v.1.7  
changed lines
  Added in v.1.12


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