From bbab4716b5925b17532f60ca66150021704fb3eb Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Wed, 18 Aug 2010 09:01:45 -0700 Subject: mtd-utils: fix compiler warnings Fixed several compiler warnings, mainly when compiling on 64-bit architectures (where "size_t"-related types are not necessarily 32-bit). Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy --- lib/libfec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libfec.c b/lib/libfec.c index adf2bba..924701f 100644 --- a/lib/libfec.c +++ b/lib/libfec.c @@ -792,7 +792,7 @@ shuffle(gf *pkt[], int index[], int k) * a vector of k*k elements, in row-major order */ static gf * -build_decode_matrix(struct fec_parms *code, gf *pkt[], int index[]) +build_decode_matrix(struct fec_parms *code, int index[]) { int i , k = code->k ; gf *p, *matrix = NEW_GF_MATRIX(k, k); @@ -846,7 +846,7 @@ fec_decode(struct fec_parms *code, gf *pkt[], int index[], int sz) if (shuffle(pkt, index, k)) /* error if true */ return 1 ; - m_dec = build_decode_matrix(code, pkt, index); + m_dec = build_decode_matrix(code, index); if (m_dec == NULL) return 1 ; /* error */ -- cgit v1.2.3