]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commit
add galois_init_default_field error code
authorLoic Dachary <loic@dachary.org>
Sun, 8 Jun 2014 16:54:00 +0000 (18:54 +0200)
committerLoic Dachary <loic@dachary.org>
Mon, 9 Jun 2014 09:20:39 +0000 (11:20 +0200)
commitc9e12edb584bb58b447c7d90e167b9853d7675b6
tree9ce2531c5564ef3e2b2ca4758de7c7c862aab334
parent35bdea7e19ad7831c3f0af609d368faef983548b
add galois_init_default_field error code

galois_init_default_field returns an errno(3) code in case of error
instead of exiting. This is handy when the caller needs to perform
cleanup or error reporting when an error occurs instead of exit(2).

The exit(2) based error handling is preserved in the static
galois_init() function which is used in galois.c instead and is based on
galois_init_default_field to avoid code duplication.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 1b30a37c9f75df371cf4deaedfde6b843933b4f0)
include/galois.h
src/galois.c