summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-28 08:22:35 +0000
committerJim Meyering <jim@meyering.net>2003-09-28 08:22:35 +0000
commitb19d106cdbe19272770d61fb65bd7d0099287d75 (patch)
tree28dfe4e22e13d67b09ca63e2f8582398cc864b5e
parent9d35e5e049ad1065e255de1ba4c7306f9d63eb88 (diff)
downloadcoreutils-b19d106cdbe19272770d61fb65bd7d0099287d75.tar.xz
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
-rw-r--r--src/ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index fd2e366ad..6b7bd360e 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -2348,7 +2348,7 @@ gobble_file (const char *name, enum filetype type, int explicit_arg,
path = (char *) name;
else
{
- path = (char *) alloca (strlen (name) + strlen (dirname) + 2);
+ path = alloca (strlen (name) + strlen (dirname) + 2);
attach (path, dirname, name);
}
@@ -3115,7 +3115,7 @@ quote_name (FILE *out, const char *name, struct quoting_options const *options,
buf = smallbuf;
else
{
- buf = (char *) alloca (len + 1);
+ buf = alloca (len + 1);
quotearg_buffer (buf, len + 1, name, -1, options);
}