From: Loic Dachary Date: Thu, 6 Mar 2014 00:29:12 +0000 (+0100) Subject: add missing return value to functions that require it X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8b030ded075466c8e8d433b146edd6f24f8647bf;p=jerasure.git add missing return value to functions that require it Signed-off-by: Loic Dachary (cherry picked from commit d4730bfd7d7c65850221083dcaf837a3a5672fe8) --- diff --git a/src/galois.c b/src/galois.c index 2cfa284..398a649 100644 --- a/src/galois.c +++ b/src/galois.c @@ -250,6 +250,7 @@ int galois_single_multiply(int x, int y, int w) return gfp_array[w]->multiply.w32(gfp_array[w], x, y); } else { fprintf(stderr, "ERROR -- Galois field not implemented for w=%d\n", w); + return 0; } } @@ -266,6 +267,7 @@ int galois_single_divide(int x, int y, int w) return gfp_array[w]->divide.w32(gfp_array[w], x, y); } else { fprintf(stderr, "ERROR -- Galois field not implemented for w=%d\n", w); + return 0; } }