summaryrefslogtreecommitdiff
path: root/src/expand.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:02:53 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:02:53 +0000
commit55755b03cde03c69e562d4b0508cce1bd186e8e6 (patch)
tree11c6978feb6b4d03e2e7003be53904aa37b4265e /src/expand.c
parent1ee1c4d4a33ebc90cb2797175bf11c0e90fda8b2 (diff)
downloadcoreutils-55755b03cde03c69e562d4b0508cce1bd186e8e6.tar.gz
(expand): Don't assume that isprint etc. return
booleans (needed for pre-C99 hosts).
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expand.c b/src/expand.c
index b1b100422..564520376 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -1,5 +1,5 @@
/* expand - convert tabs to spaces
- Copyright (C) 89, 91, 1995-2005 Free Software Foundation, Inc.
+ Copyright (C) 89, 91, 1995-2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -157,7 +157,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);
@@ -352,7 +352,7 @@ expand (void)
error (EXIT_FAILURE, 0, _("input line is too long"));
}
- convert &= convert_entire_line | ISBLANK (c);
+ convert &= convert_entire_line | !! isblank (c);
}
if (c < 0)