summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2014-03-06 01:29:12 +0100
committerLoic Dachary <loic@dachary.org>2014-03-06 01:38:29 +0100
commitd4730bfd7d7c65850221083dcaf837a3a5672fe8 (patch)
treed7ec13960c22f7e4a854d5ba04d6c786d1322ba2
parent87f301084ddccf58c5206d949209b49adecccf55 (diff)
downloadjerasure-d4730bfd7d7c65850221083dcaf837a3a5672fe8.tar.gz
add missing return value to functions that require it
Signed-off-by: Loic Dachary <loic@dachary.org>
-rw-r--r--src/galois.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}