#include <ac/string.h>
#include <ac/time.h>
#include <ac/unistd.h>
-extern char *strdup (const char *);
#include <sys/stat.h>
result = (char **) realloc( result,
sizeof(char *) * (num + 1) );
- result[num++] = (char *) strdup( buf );
+ result[num++] = (char *) ldap_strdup( buf );
}
if ( result == (char **) 0 )
return( NULL );
getline( buf, sizeof(buf), stdin, prompt2 );
if ( buf[0] == '\0' )
break;
- tmp.mod_type = strdup( buf );
+ tmp.mod_type = ldap_strdup( buf );
tmp.mod_values = get_list( prompt3 );
int copyoptions = 0;
LDAPURLDesc *ludp;
- extern char *optarg;
- extern int optind;
-
host = NULL;
port = LDAP_PORT;
dnsuffix = "";
break;
case 't': /* copy ber's to given file */
- copyfname = strdup( optarg );
+ copyfname = ldap_strdup( optarg );
copyoptions = LBER_TO_FILE;
break;
case 'T': /* only output ber's to given file */
- copyfname = strdup( optarg );
+ copyfname = ldap_strdup( optarg );
copyoptions = (LBER_TO_FILE | LBER_TO_FILE_ONLY);
break;