#include <ac/stdlib.h>
#include <ac/string.h>
#include <ac/time.h>
-#include <ac/ctype.h>
#include "ldap-int.h"
for (;;)
{
- while (isspace(*p)) /* Skip leading whitespace */
+ while (LDAP_SPACE(*p)) /* Skip leading whitespace */
p++;
if (*p == '\0') /* End of string? */
count++; /* Found start of a key */
- while (!isspace(*p)) /* Skip till next space or end of string. */
+ while (!LDAP_SPACE(*p)) /* Skip till next space or end of string. */
if (*p++ == '\0')
return count;
}
int oidLen = 0;
/* Skip leading white space. */
- while (isspace(*p))
+ while (LDAP_SPACE(*p))
p++;
if (*p == '-') /* Check if the reverse flag is present. */
if( tag == LBER_ERROR ) goto exit;
}
- tag = ber_printf(ber, /*{*/ "}");
+ tag = ber_printf(ber, /*{*/ "N}");
if( tag == LBER_ERROR ) goto exit;
}
- tag = ber_printf(ber, /*{*/ "}");
+ tag = ber_printf(ber, /*{*/ "N}");
if( tag == LBER_ERROR ) goto exit;
- ld->ld_errno = ldap_int_create_control( LDAP_CONTROL_SORTREQUEST,
+ ld->ld_errno = ldap_create_control( LDAP_CONTROL_SORTREQUEST,
ber, isCritical, ctrlp);
ber_free(ber, 1);