s/isspace/ISSPACE
This commit is contained in:
parent
ef24ecde68
commit
c2ba8ca81f
@ -146,7 +146,7 @@ static CURLcode file_range(struct connectdata *conn)
|
|||||||
|
|
||||||
if(data->state.use_range && data->state.range) {
|
if(data->state.use_range && data->state.range) {
|
||||||
from=curlx_strtoofft(data->state.range, &ptr, 0);
|
from=curlx_strtoofft(data->state.range, &ptr, 0);
|
||||||
while(*ptr && (isspace((int)*ptr) || (*ptr=='-')))
|
while(*ptr && (ISSPACE(*ptr) || (*ptr=='-')))
|
||||||
ptr++;
|
ptr++;
|
||||||
to=curlx_strtoofft(ptr, &ptr2, 0);
|
to=curlx_strtoofft(ptr, &ptr2, 0);
|
||||||
if(ptr == ptr2) {
|
if(ptr == ptr2) {
|
||||||
|
@ -511,14 +511,14 @@ static ssize_t ldap_recv(struct connectdata *conn, int sockindex, char *buf,
|
|||||||
|
|
||||||
if (!binary) {
|
if (!binary) {
|
||||||
/* check for leading or trailing whitespace */
|
/* check for leading or trailing whitespace */
|
||||||
if (isspace(bvals[i].bv_val[0]) ||
|
if (ISSPACE(bvals[i].bv_val[0]) ||
|
||||||
isspace(bvals[i].bv_val[bvals[i].bv_len-1])) {
|
ISSPACE(bvals[i].bv_val[bvals[i].bv_len-1])) {
|
||||||
binval = 1;
|
binval = 1;
|
||||||
} else {
|
} else {
|
||||||
/* check for unprintable characters */
|
/* check for unprintable characters */
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
for (j=0; j<bvals[i].bv_len; 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;
|
binval = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1935,7 +1935,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||||||
char *ptr2;
|
char *ptr2;
|
||||||
|
|
||||||
from=curlx_strtoofft(conn->data->state.range, &ptr, 0);
|
from=curlx_strtoofft(conn->data->state.range, &ptr, 0);
|
||||||
while(*ptr && (isspace((int)*ptr) || (*ptr=='-')))
|
while(*ptr && (ISSPACE(*ptr) || (*ptr=='-')))
|
||||||
ptr++;
|
ptr++;
|
||||||
to=curlx_strtoofft(ptr, &ptr2, 0);
|
to=curlx_strtoofft(ptr, &ptr2, 0);
|
||||||
if((ptr == ptr2) /* no "to" value given */
|
if((ptr == ptr2) /* no "to" value given */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user