]> git.sur5r.net Git - openldap/blobdiff - libraries/liblber/idtest.c
Vienna Bulk Commit
[openldap] / libraries / liblber / idtest.c
index a35e09826214a8e8c3e703ac532d3887e325400b..cc747152c3376878f2b9d69757c1401506e0bed6 100644 (file)
@@ -1,5 +1,9 @@
 /* idtest.c - ber decoding test program using isode libraries */
 /*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/* Portions
  * Copyright (c) 1990 Regents of the University of Michigan.
  * All rights reserved.
  *
 #include "portable.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #ifdef HAVE_PSAP_H
 #include <psap.h>
 #include <quipu/attr.h>
 #endif
 
-static usage( char *name )
-{
-       fprintf( stderr, "usage: %s\n", name );
-}
-
+int
 main( int argc, char **argv )
 {
 #ifdef HAVE_PSAP_H
@@ -67,6 +68,6 @@ main( int argc, char **argv )
        exit( 0 );
 #else
        fprintf(stderr, "requires ISODE X.500 distribution.\n");
-       exit( 1 );
+       return( EXIT_FAILURE );
 #endif
 }