# HG changeset patch # User Matti Hamalainen # Date 1401164939 -10800 # Node ID a8f732601fdc63d136c9adea782045f91a4d2cb8 # Parent 5197c4ccbfba2837ade89c43d85635a9e7edd65f Rename th_get_errno() to th_get_error(), it's more appropriate since it does not return 'errno' per se. diff -r 5197c4ccbfba -r a8f732601fdc th_util.c --- a/th_util.c Sun May 25 05:28:52 2014 +0300 +++ b/th_util.c Tue May 27 07:28:59 2014 +0300 @@ -126,7 +126,7 @@ /* Error handling */ -int th_get_errno() +int th_get_error() { return TH_SYSTEM_ERRORS + errno; } diff -r 5197c4ccbfba -r a8f732601fdc th_util.h --- a/th_util.h Sun May 25 05:28:52 2014 +0300 +++ b/th_util.h Tue May 27 07:28:59 2014 +0300 @@ -120,7 +120,7 @@ char *author, char *license); void th_print_banner(FILE *outFile, const char *binName, const char *usage); -int th_get_errno(); +int th_get_error(); int th_errno_to_error(int error); const char *th_error_str(int error);