summaryrefslogtreecommitdiff
path: root/lib/openldap.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-11-26 13:59:01 +0100
committerYang Tse <yangsita@gmail.com>2010-11-26 13:59:01 +0100
commitc2ba8ca81f8d753a9ac3fdd94a1fb3ea53b64f84 (patch)
tree5627f9a8da9d99b8390cdf0484524b6f31695b01 /lib/openldap.c
parentef24ecde68a5f577a7f0f423a767620f09a0ab16 (diff)
downloadcurl-c2ba8ca81f8d753a9ac3fdd94a1fb3ea53b64f84.tar.gz
s/isspace/ISSPACE
Diffstat (limited to 'lib/openldap.c')
-rw-r--r--lib/openldap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/openldap.c b/lib/openldap.c
index 6b059d10a..e9dcfcc71 100644
--- a/lib/openldap.c
+++ b/lib/openldap.c
@@ -511,14 +511,14 @@ static ssize_t ldap_recv(struct connectdata *conn, int sockindex, char *buf,
if (!binary) {
/* check for leading or trailing whitespace */
- if (isspace(bvals[i].bv_val[0]) ||
- isspace(bvals[i].bv_val[bvals[i].bv_len-1])) {
+ if (ISSPACE(bvals[i].bv_val[0]) ||
+ ISSPACE(bvals[i].bv_val[bvals[i].bv_len-1])) {
binval = 1;
} else {
/* check for unprintable characters */
unsigned int j;
for (j=0; j<bvals[i].bv_len; j++)
- if (!isprint(bvals[i].bv_val[j])) {
+ if (!ISPRINT(bvals[i].bv_val[j])) {
binval = 1;
break;
}