projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d35e5e
)
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
author
Jim Meyering
<jim@meyering.net>
Sun, 28 Sep 2003 08:22:35 +0000
(08:22 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 28 Sep 2003 08:22:35 +0000
(08:22 +0000)
src/ls.c
patch
|
blob
|
history
diff --git
a/src/ls.c
b/src/ls.c
index
fd2e366
..
6b7bd36
100644
(file)
--- 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);
}