Diff for /libraries/liblber/dtest.c between versions 1.1.3.1.20.4 and 1.1.4.1

version 1.1.3.1.20.4, 1998/10/24 18:18:31 version 1.1.4.1, 1998/08/08 23:05:23
Line 11 Line 11
  * is provided ``as is'' without express or implied warranty.   * is provided ``as is'' without express or implied warranty.
  */   */
   
 #include "portable.h"  
   
 #include <stdio.h>  #include <stdio.h>
   #include <string.h>
   #ifdef MACOS
 #include <stdlib.h>  #include <stdlib.h>
   
 #include <ac/string.h>  
 #include <ac/socket.h>  
   
 #ifdef HAVE_CONSOLE_H  
 #include <console.h>  #include <console.h>
   #else /* MACOS */
   #include <sys/types.h>
   #include <sys/socket.h>
 #endif /* MACOS */  #endif /* MACOS */
   
 #include "lber.h"  #include "lber.h"
   
 static void usage( char *name )  static usage( char *name )
 {  {
         fprintf( stderr, "usage: %s fmt\n", name );          fprintf( stderr, "usage: %s fmt\n", name );
 }  }
   
 main( int argc, char **argv )  main( int argc, char **argv )
 {  {
         long            i;          long            i, i2, num;
         unsigned long   len;          unsigned long   len;
         int             tag;          int             tag;
           char            *str, *s1, *s2;
         BerElement      ber;          BerElement      ber;
         Sockbuf         sb;          Sockbuf         sb;
         extern char     *optarg;          extern char     *optarg;
   
 #ifdef HAVE_CONSOLE_H  #ifdef MACOS
         ccommand( &argv );          ccommand( &argv );
         cshow( stdout );          cshow( stdout );
 #endif /* MACOS */  #endif /* MACOS */
   
         memset( &sb, 0, sizeof(sb) );          bzero( &sb, sizeof(sb) );
         sb.sb_sd = 0;          sb.sb_sd = 0;
         sb.sb_ber.ber_buf = NULL;          sb.sb_ber.ber_buf = NULL;
   
         if ( (tag = ber_get_next( &sb, &len, &ber )) == -1 ) {          if ( (tag = ber_get_next( &sb, &len, &ber )) == -1 ) {
                 perror( "ber_get_next" );                  perror( "ber_get_next" );
                 exit( 1 );                  exit( 1 );

Removed from v.1.1.3.1.20.4  
changed lines
  Added in v.1.1.4.1


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