]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commitdiff
add missing return value to functions that require it
authorLoic Dachary <loic@dachary.org>
Thu, 6 Mar 2014 00:29:12 +0000 (01:29 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 6 Mar 2014 08:49:52 +0000 (09:49 +0100)
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit d4730bfd7d7c65850221083dcaf837a3a5672fe8)

src/galois.c

index 2cfa284173146c296a48762cccad59b0485a696a..398a64944f797d33909e313225195a1ce3d75f67 100644 (file)
@@ -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;
   }
 }