From: Jim Meyering Date: Sun, 28 Sep 2003 08:21:14 +0000 (+0000) Subject: Remove unnecessary casts of alloca, since now it's guaranteed to be (void *). X-Git-Tag: COREUTILS-5_1_0~520 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=793eadf8a9ad61a7a2d93579caa1be5714a55556;p=platform%2Fupstream%2Fcoreutils.git Remove unnecessary casts of alloca, since now it's guaranteed to be (void *). --- diff --git a/src/sort.c b/src/sort.c index 00a8247..5fc6640 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;