From d54dd90e5c4a15727491b9880a534eb948fe82e5 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 29 Mar 2011 00:04:54 +0200 Subject: [PATCH] Get rid of some duplicate const qualifiers. Fix fixes duplicate `const' warnings on gcc-3.3.3. --- fec.c | 4 ++-- mm.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fec.c b/fec.c index dc6e7520..233a8780 100644 --- a/fec.c +++ b/fec.c @@ -179,14 +179,14 @@ static void generate_gf(void) * This is used often, so better optimize it! Currently the loop is unrolled 16 * times. The case c=0 is also optimized, whereas c=1 is not. */ -static void addmul(unsigned char *dst1, const unsigned char const *src1, +static void addmul(unsigned char *dst1, const unsigned char *src1, unsigned char c, int sz) { if (c == 0) return; unsigned char *dst = dst1, *lim = &dst[sz - UNROLL + 1], *col = gf_mul_table[c]; - const unsigned char const *src = src1; + const unsigned char *src = src1; for (; dst < lim; dst += UNROLL, src += UNROLL) { dst[0] ^= col[src[0]]; diff --git a/mm.c b/mm.c index a9f4b9bd..af99a36f 100644 --- a/mm.c +++ b/mm.c @@ -32,7 +32,7 @@ enum mood_comparator_id {MOOD_COMPARATORS NUM_MOOD_COMPARATORS}; #undef MC #define MC(a, b) # b, -static const char const *mood_comparators[] = {MOOD_COMPARATORS}; +static const char *mood_comparators[] = {MOOD_COMPARATORS}; #undef MC static int parse_mood_comparator(const char *word) -- 2.39.2