]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commit
add galois_init_default_field error code wip-galois-init-v2
authorLoic Dachary <loic@dachary.org>
Sun, 8 Jun 2014 16:54:00 +0000 (18:54 +0200)
committerLoic Dachary <loic@dachary.org>
Sun, 8 Jun 2014 17:10:25 +0000 (19:10 +0200)
commit12f6c1cd34a9bf96a415f52b424ebc37c5a88881
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>
include/galois.h
src/galois.c