From: Paul Eggert Date: Sun, 9 Jul 2006 17:05:13 +0000 (+0000) Subject: (unexpand): Don't assume that isprint etc. return X-Git-Tag: v6.0~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7a6c4014f2f487f180a05159ef4a5dfbf2ac9e6;p=thirdparty%2Fcoreutils.git (unexpand): Don't assume that isprint etc. return booleans (needed for pre-C99 hosts). --- diff --git a/src/unexpand.c b/src/unexpand.c index d22aead8bd..cbceca0f4a 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -176,7 +176,7 @@ parse_tab_stops (char const *stops) for (; *stops; stops++) { - if (*stops == ',' || ISBLANK (to_uchar (*stops))) + if (*stops == ',' || isblank (to_uchar (*stops))) { if (have_tabval) add_tab_stop (tabval); @@ -348,7 +348,7 @@ unexpand (void) if (convert) { - bool blank = ISBLANK (c); + bool blank = !! isblank (c); if (blank) {