]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/friendly.c
Braced ldap_connect_to_path() in #ifdef LDAP_PF_LOCAL so as to compile
[openldap] / libraries / libldap / friendly.c
index d88052a1fd11783ae331a93f9148ae6b83a9afc6..ec37982a70b27393d3b424ee481d843452822e12 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
@@ -12,7 +13,7 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <stdlib.h>
+#include <ac/stdlib.h>
 
 #include <ac/ctype.h>
 #include <ac/errno.h>
@@ -86,8 +87,8 @@ ldap_friendly_name(
                                }
                        }
 
-                       (*map)[i].lf_unfriendly = strdup( buf );
-                       (*map)[i].lf_friendly   = strdup( s );
+                       (*map)[i].lf_unfriendly = LDAP_STRDUP( buf );
+                       (*map)[i].lf_friendly   = LDAP_STRDUP( s );
                        i++;
                }