]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10150 - Remove dead code
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 11 Jan 2024 18:32:03 +0000 (18:32 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 12 Jan 2024 15:11:27 +0000 (15:11 +0000)
Remove dead code for ancient version of macos

libraries/liblber/dtest.c
libraries/liblber/etest.c

index 4785254cbba29f05da509c027d625fbbcd24f62d..cfe39636370c4858e3367a4979ff0736d72fef15 100644 (file)
 #include <ac/unistd.h>
 #include <ac/errno.h>
 
-#ifdef HAVE_CONSOLE_H
-#include <console.h>
-#endif
-
 #include <lber.h>
 
 static void usage( const char *name )
@@ -70,11 +66,6 @@ main( int argc, char **argv )
                return( EXIT_FAILURE );
        }
 
-#ifdef HAVE_CONSOLE_H
-       ccommand( &argv );
-       cshow( stdout );
-#endif
-
        sb = ber_sockbuf_alloc();
        fd = fileno( stdin );
        ber_sockbuf_add_io( sb, &ber_sockbuf_io_fd, LBER_SBIOD_LEVEL_PROVIDER,
index 3f608787a27150cee30e221e148e09298cf0ced5..5ae3f74771c91d5eceb12317f9a1e7076642469b 100644 (file)
 #include <ac/string.h>
 #include <ac/unistd.h>
 
-#ifdef HAVE_CONSOLE_H
-#include <console.h>
-#endif /* HAVE_CONSOLE_H */
-
 #include "lber.h"
 
 static void usage( const char *name )
@@ -79,19 +75,7 @@ main( int argc, char **argv )
                return( EXIT_FAILURE );
        }
 
-#ifdef HAVE_CONSOLE_H
-       ccommand( &argv );
-       cshow( stdout );
-
-       if (( fd = open( "lber-test", O_WRONLY|O_CREAT|O_TRUNC|O_BINARY ))
-               < 0 ) {
-           perror( "open" );
-           return( EXIT_FAILURE );
-       }
-
-#else
        fd = fileno(stdout);
-#endif
 
        sb = ber_sockbuf_alloc();
        ber_sockbuf_add_io( sb, &ber_sockbuf_io_fd, LBER_SBIOD_LEVEL_PROVIDER,