]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/tmpltest.c
Fix ldap_send_initial_request() to open connection if not already
[openldap] / libraries / libldap / tmpltest.c
index aa860b9a37df368207a7d22a8c812252f7a55f18..9d9f5b3d14ee68441bccbe18141da4a316b7e998 100644 (file)
@@ -1,3 +1,7 @@
+/*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 #include "portable.h"
 
 #include <stdio.h>
@@ -6,7 +10,7 @@
 #include <ac/socket.h>
 #include <ac/time.h>
 
-#ifdef MACOS
+#ifdef HAVE_CONSOLE_H
 #include <console.h>
 #endif /* MACOS */
 
@@ -15,8 +19,8 @@
 #include "disptmpl.h"
 #include "srchpref.h"
 
-void dump_tmpl LDAP_P(( struct ldap_disptmpl *tmpl ));
-void dump_srchpref LDAP_P(( struct ldap_searchobj *sp ));
+static void dump_tmpl   ( struct ldap_disptmpl *tmpl );
+static void dump_srchpref( struct ldap_searchobj *sp );
 
 #define NULLSTRINGIFNULL( s )  ( s == NULL ? "(null)" : s )
 
@@ -27,7 +31,7 @@ main( int argc, char **argv )
     struct ldap_searchobj      *so, *sop;
     int                                err;
 
-#ifdef MACOS
+#ifdef HAVE_CONSOLE_H
        ccommand( &argv );
        for ( argc = 0; argv[ argc ] != NULL; ++argc ) {
            ;