summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-05 00:25:10 +0000
committerJim Meyering <jim@meyering.net>1998-07-05 00:25:10 +0000
commit73b7370917d33b5c08dd7cbd72b07f72dfaa2e5a (patch)
treef48b57b97644b5534c9f68ce4f28d46fd6829e56 /src
parentbca292d9e61e71030be617e3ddaaaa35d5d90b9f (diff)
downloadcoreutils-73b7370917d33b5c08dd7cbd72b07f72dfaa2e5a.tar.xz
(parse_line): Add casts to avoid errors from Irix4's `cc' C compiler.
From Kaveh Ghazi.
Diffstat (limited to 'src')
-rw-r--r--src/dircolors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dircolors.c b/src/dircolors.c
index f1c0cbc6e..96ede3714 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -174,7 +174,7 @@ parse_line (unsigned char const *line, char **keyword, char **arg)
++p;
}
- *keyword = xstrndup (keyword_start, p - keyword_start);
+ *keyword = xstrndup ((const char *) keyword_start, p - keyword_start);
if (*p == '\0')
return;
@@ -198,7 +198,7 @@ parse_line (unsigned char const *line, char **keyword, char **arg)
}
++p;
- *arg = xstrndup (arg_start, p - arg_start);
+ *arg = xstrndup ((const char *) arg_start, p - arg_start);
}
/* FIXME: Write a string to standard out, while watching for "dangerous"
@@ -287,7 +287,7 @@ dc_parse_stream (FILE *fp, const char *filename)
break;
}
- parse_line (line, &keywd, &arg);
+ parse_line ((unsigned char *) line, &keywd, &arg);
if (keywd == NULL)
continue;