diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-28 08:21:14 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-28 08:21:14 +0000 |
commit | 793eadf8a9ad61a7a2d93579caa1be5714a55556 (patch) | |
tree | 68d54adf75cd50a94527aebd644b6514c6a9482f /src | |
parent | 9691f1611e8452001007d29109143c331b0cccf5 (diff) | |
download | coreutils-793eadf8a9ad61a7a2d93579caa1be5714a55556.tar.xz |
Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).
Diffstat (limited to 'src')
-rw-r--r-- | src/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c index 00a82474f..5fc6640bb 100644 --- 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; |