Diff for /libraries/liblber/dtest.c between versions 1.22 and 1.26

version 1.22, 1999/08/01 23:50:08 version 1.26, 2001/12/19 20:22:04
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.25 2000/06/01 18:59:21 kurt Exp $ */
 /*  /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */   */
 /* Portions  /* Portions
Line 30 Line 31
   
 #include <lber.h>  #include <lber.h>
   
 static void usage( char *name )  static void usage( const char *name )
 {  {
         fprintf( stderr, "usage: %s fmt\n", name );          fprintf( stderr, "usage: %s fmt\n", name );
 }  }
Line 46  main( int argc, char **argv ) Line 47  main( int argc, char **argv )
   
         BerElement      *ber;          BerElement      *ber;
         Sockbuf         *sb;          Sockbuf         *sb;
           int             fd;
   
         /* enable debugging */          /* enable debugging */
         int ival = -1;          int ival = -1;
Line 61  main( int argc, char **argv ) Line 63  main( int argc, char **argv )
         cshow( stdout );          cshow( stdout );
 #endif  #endif
   
         sb = ber_sockbuf_alloc_fd( fileno(stdin) );          sb = ber_sockbuf_alloc();
           fd = fileno( stdin );
           ber_sockbuf_add_io( sb, &ber_sockbuf_io_fd, LBER_SBIOD_LEVEL_PROVIDER,
                   (void *)&fd );
   
         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" );

Removed from v.1.22  
changed lines
  Added in v.1.26


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