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:
9691f16
)
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
author
Jim Meyering
<jim@meyering.net>
Sun, 28 Sep 2003 08:21:14 +0000
(08:21 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 28 Sep 2003 08:21:14 +0000
(08:21 +0000)
src/sort.c
patch
|
blob
|
history
diff --git
a/src/sort.c
b/src/sort.c
index
00a8247
..
5fc6640
100644
(file)
--- a/
src/sort.c
+++ b/
src/sort.c
@@
-1316,7
+1316,7
@@
getmonth (const char *s, size_t len)
if (len == 0)
return 0;
- month =
(char *)
alloca (len + 1);
+ month = alloca (len + 1);
for (i = 0; i < len; ++i)
month[i] = fold_toupper[UCHAR (s[i])];
len -= trailing_blanks (month, len);
@@
-1389,7
+1389,7
@@
keycompare (const struct line *a, const struct line *b)
{
if (ignore || translate)
{
- char *copy_a =
(char *)
alloca (lena + 1 + lenb + 1);
+ char *copy_a = alloca (lena + 1 + lenb + 1);
char *copy_b = copy_a + lena + 1;
size_t new_len_a, new_len_b, i;