]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/friendly.c
Commit preliminary fix for ldap.conf base usage.
[openldap] / libraries / libldap / friendly.c
index a18a2456d2a143e7a22a04440f0ae6d843238e9a..278c729cee01b27570c0fd60f9a2dd21375b3c8b 100644 (file)
@@ -19,7 +19,6 @@ static char copyright[] = "@(#) Copyright (c) 1993 Regents of the University of
 #include <ac/socket.h>
 #include <ac/string.h>
 #include <ac/time.h>
-extern char *strdup (const char *);
 
 #include "ldap-int.h"
 
@@ -84,8 +83,8 @@ ldap_friendly_name( char *filename, char *uname, FriendlyMap **map )
                                }
                        }
 
-                       (*map)[i].f_unfriendly = strdup( buf );
-                       (*map)[i].f_friendly strdup( s );
+                       (*map)[i].f_unfriendly = ldap_strdup( buf );
+                       (*map)[i].f_friendly   = ldap_strdup( s );
                        i++;
                }