X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Ftmpltest.c;h=bbdae7fa1af49809de64d833c54d37982816d62b;hb=91e24173d0fa168bdd3e585af2d56f3299a20c00;hp=0ddfb49dbcad3c9695e4aa255a1e5b3386836881;hpb=3046c0449ea9aeff6cda09a516b554849bd67a18;p=openldap diff --git a/libraries/libldap/tmpltest.c b/libraries/libldap/tmpltest.c index 0ddfb49dbc..bbdae7fa1a 100644 --- a/libraries/libldap/tmpltest.c +++ b/libraries/libldap/tmpltest.c @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file @@ -5,19 +6,19 @@ #include "portable.h" #include -#include + +#include #include #include #ifdef HAVE_CONSOLE_H #include -#endif /* MACOS */ +#endif /* HAVE_CONSOLE_H */ -#include "lber.h" -#include "ldap.h" -#include "disptmpl.h" -#include "srchpref.h" +#include +#include +#include static void dump_tmpl ( struct ldap_disptmpl *tmpl ); static void dump_srchpref( struct ldap_searchobj *sp ); @@ -42,13 +43,13 @@ main( int argc, char **argv ) if (( err = ldap_init_templates( "ldaptemplates.conf", &templates )) != 0 ) { fprintf( stderr, "ldap_init_templates failed (%d)\n", err ); - exit( 1 ); + exit( EXIT_FAILURE ); } if (( err = ldap_init_searchprefs( "ldapsearchprefs.conf", &so )) != 0 ) { fprintf( stderr, "ldap_init_searchprefs failed (%d)\n", err ); - exit( 1 ); + exit( EXIT_FAILURE ); } if ( argc == 1 ) { @@ -78,7 +79,7 @@ main( int argc, char **argv ) ldap_free_templates( templates ); ldap_free_searchprefs( so ); - exit( 0 ); + exit( EXIT_SUCCESS ); }