Mercurial > hg > th-libs
changeset 101:a8f732601fdc
Rename th_get_errno() to th_get_error(), it's more appropriate since it does
not return 'errno' per se.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 27 May 2014 07:28:59 +0300 |
parents | 5197c4ccbfba |
children | 6ca407bfbeaf |
files | th_util.c th_util.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; }
--- 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);