]> git.sur5r.net Git - openldap/blobdiff - clients/ud/util.c
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
[openldap] / clients / ud / util.c
index 1d0db263fafc3051b46e1fc1f673c7c84121de0e..27023de75990dfd1d8a96b09ae8d10e9feeb91e1 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright (c) 1992, 1993  Regents of the University of Michigan.
  * All rights reserved.
@@ -26,8 +27,8 @@
 
 #include <lber.h>
 #include <ldap.h>
-#include <ldapconfig.h>
 
+#include "ldap_defaults.h"
 #include "ud.h"
 
 void
@@ -102,7 +103,7 @@ fatal( char *s )
 #ifdef HAVE_KERBEROS
        destroy_tickets();
 #endif
-       exit(-1);
+       exit( EXIT_FAILURE );
 }
 
 int
@@ -451,7 +452,7 @@ Malloc( unsigned int size )
        void_ptr = (void *) malloc(size);
        if (void_ptr == NULL) {
                perror("malloc");
-               exit(-1);
+               exit( EXIT_FAILURE );
                /*NOTREACHED*/
        }
        return(void_ptr);