]> git.sur5r.net Git - openldap/blobdiff - clients/mail500/main.c
Fix most `wider type truncated to int' bugs on OSF1 due to implicit decls:
[openldap] / clients / mail500 / main.c
index 31406ac229b6153b229672b381763bbadff524bc..ef0e90006a1b17a8ba51c75c06201db7873e2387 100644 (file)
@@ -13,6 +13,7 @@
 #include "portable.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 
 #include <ac/string.h>
@@ -56,7 +57,7 @@ char  *vacationhost = NULL;
 char   *errorsfrom = NULL;
 char   *mailfrom = NULL;
 char   *host = NULL;
-char   *ldaphost = LDAPHOST;
+char   *ldaphost = NULL;
 int    hostlen = 0;
 int    debug;
 
@@ -356,7 +357,7 @@ connect_to_x500()
        opt = LDAP_DEREF_ALWAYS;
        ldap_set_option(ld, LDAP_OPT_DEREF, &opt);
 
-       if ( ldap_simple_bind_s( ld, MAIL500_BINDDN, NULL ) != LDAP_SUCCESS ) {
+       if ( ldap_simple_bind_s( ld, NULL, NULL ) != LDAP_SUCCESS ) {
                syslog( LOG_ALERT, "ldap_simple_bind_s failed" );
                return( -1 );
        }