#include "portable.h"
#include <stdio.h>
-#include <ctype.h>
-#include <string.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include "slap.h"
-static char **dn_explode();
+#include <ac/ctype.h>
+#include <ac/socket.h>
+#include <ac/string.h>
+#include <ac/time.h>
+
+#include "slap.h"
#define DNSEPARATOR(c) (c == ',' || c == ';')
#define SEPARATOR(c) (c == ',' || c == ';' || c == '+')
if ( *(s + 1) == '\0' ) {
return( NULL );
} else {
- return( strdup( s + 1 ) );
+ return( ch_strdup( s + 1 ) );
}
}
if ( *s == '"' )
inquote = 1;
else if ( DNSEPARATOR( *s ) )
- return( strdup( s + 1 ) );
+ return( ch_strdup( s + 1 ) );
}
}
- return( strdup("") );
+ return( ch_strdup("") );
}
/*