summaryrefslogtreecommitdiff
path: root/src/dircolors.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:08:55 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:08:55 +0000
commit197b96d06916887c4c167a3ee25edfdb3631ac71 (patch)
treea80b97e630d7ad60e5479022aef34f3ace3105ab /src/dircolors.c
parentb3e1ad7a5d972ee947831e9d943a12c239864e72 (diff)
downloadcoreutils-197b96d06916887c4c167a3ee25edfdb3631ac71.tar.xz
Adjust to today's renaming changes in system.h.
Diffstat (limited to 'src/dircolors.c')
-rw-r--r--src/dircolors.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/dircolors.c b/src/dircolors.c
index 7c388f06c..e30774ab2 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -155,8 +155,8 @@ parse_line (char const *line, char **keyword, char **arg)
*keyword = NULL;
*arg = NULL;
- for (p = line; ISSPACE (to_uchar (*p)); ++p)
- ;
+ for (p = line; isspace (to_uchar (*p)); ++p)
+ continue;
/* Ignore blank lines and shell-style comments. */
if (*p == '\0' || *p == '#')
@@ -164,7 +164,7 @@ parse_line (char const *line, char **keyword, char **arg)
keyword_start = p;
- while (!ISSPACE (to_uchar (*p)) && *p != '\0')
+ while (!isspace (to_uchar (*p)) && *p != '\0')
{
++p;
}
@@ -177,7 +177,7 @@ parse_line (char const *line, char **keyword, char **arg)
{
++p;
}
- while (ISSPACE (to_uchar (*p)));
+ while (isspace (to_uchar (*p)));
if (*p == '\0' || *p == '#')
return;
@@ -187,10 +187,8 @@ parse_line (char const *line, char **keyword, char **arg)
while (*p != '\0' && *p != '#')
++p;
- for (--p; ISSPACE (to_uchar (*p)); --p)
- {
- /* empty */
- }
+ for (--p; isspace (to_uchar (*p)); --p)
+ continue;
++p;
*arg = xstrndup (arg_start, p - arg_start);