diff options
author | Joursoir <chat@joursoir.net> | 2022-08-27 12:38:00 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-08-27 12:40:29 +0300 |
commit | 913c1d9a7940002d185a11d0eb0a759cc863e208 (patch) | |
tree | 114da8ad3a3347b8e6d86e38e49baf1d3d37d258 /src | |
parent | 9660f20af1f041f59cf23dd805df7ab6c7d34792 (diff) | |
download | lock-password-913c1d9a7940002d185a11d0eb0a759cc863e208.tar.gz lock-password-913c1d9a7940002d185a11d0eb0a759cc863e208.tar.bz2 lock-password-913c1d9a7940002d185a11d0eb0a759cc863e208.zip |
constants: drop macro for error handling
This is last patch on the way to get rid of errprint_*() macros
and handle errors by yourself. For more context see other patches
under the same topic specified below.
TOPIC=drop_errprint
Diffstat (limited to 'src')
-rw-r--r-- | src/constants.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/constants.h b/src/constants.h index 6501f3c..cdc0464 100644 --- a/src/constants.h +++ b/src/constants.h @@ -26,18 +26,6 @@ #define GPGKEY_FILE ".gpg-key" #define STD_TEXT_EDITOR "vi" -#define errprint_r(RET, ...) \ - do { \ - fprintf(stderr, "Error: " __VA_ARGS__); \ - return RET; \ - } while(0) - -#define errprint_ptr(PTR, RETVAL, ...) \ - do { \ - fprintf(stderr, "Error: " __VA_ARGS__); \ - *PTR = RETVAL; \ - } while(0) - #ifdef DEBUG #define dbgprint(...) fprintf(stderr, "Debug: " __VA_ARGS__) #else |