]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/apitest.c
Add ber_bvstr and ber_bvstrdup string to berval allocators.
[openldap] / libraries / libldap / apitest.c
index cbab301c271d2495e205ccc48857920ac2702aa9..b14f563d4bfdf62671a2efa8d811193ba9a19f60 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 #include "portable.h"
 
+#include <ac/stdlib.h>
+
 #include <stdio.h>
-#include <stdlib.h>
 
-#include "lber.h"
-#include "ldap.h"
+#include <ldap.h>
 
 int
 main(int argc, char **argv)
@@ -184,7 +185,7 @@ main(int argc, char **argv)
                printf("  HOST NAME:         %s\n", sval);
                ldap_memfree(sval);
        } else {
-               printf("  HOST NAME:         <not set>\n", sval);
+               puts("  HOST NAME:         <not set>");
        }
 
        return EXIT_SUCCESS;