-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Loic Dachary
committed
Jun 8, 2014
1 parent
b8221e7
commit 1b30a37
Showing
2 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters