diff options
author | Brian Norris <norris@broadcom.com> | 2010-08-18 09:01:45 -0700 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-08-30 11:40:07 +0300 |
commit | bbab4716b5925b17532f60ca66150021704fb3eb (patch) | |
tree | 531f54fde505d1bf7f7dd3eddcf685b877fd52e5 /lib | |
parent | a611ba6b5f3ce8356c0e3ae62f0ebbee7d54f046 (diff) |
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 <norris@broadcom.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libfec.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |