]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/examples_run.c
tools: fix ctype.h and string usage.
[ccan] / tools / ccanlint / tests / examples_run.c
index 4cf9242297988ad64b75835f098799aea52c2915..23a3844a5bb7d0d153bb2f55cb638107e77b3a79 100644 (file)
@@ -36,10 +36,10 @@ static bool scan_forv(const void *ctx,
 
        va_copy(ap, *args);
 
-       if (isspace(fmt[0])) {
+       if (cisspace(fmt[0])) {
                /* One format space can swallow many input spaces */
                ret = false;
-               while (isspace(input[0])) {
+               while (cisspace(input[0])) {
                        if (scan_forv(ctx, ++input, fmt+1, &ap)) {
                                ret = true;
                                break;