diff options
author | Joursoir <chat@joursoir.net> | 2022-08-21 15:46:12 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-08-22 00:40:17 +0300 |
commit | 3f22a4390ef116593158b4c9b36e923f6d853aee (patch) | |
tree | 30d9859d31423779274124969e1c52958be1f357 /src/constants.h | |
parent | b018da7fb3d400036c38a3af6554ab25e408b9c8 (diff) | |
download | lock-password-3f22a4390ef116593158b4c9b36e923f6d853aee.tar.gz lock-password-3f22a4390ef116593158b4c9b36e923f6d853aee.tar.bz2 lock-password-3f22a4390ef116593158b4c9b36e923f6d853aee.zip |
tree: usageprint() macro no longer returns an error by itself
This patch also does:
- Moves usageprint() from constants.h to output.h
- Returns an error after using useprint() clearly.
Diffstat (limited to 'src/constants.h')
-rw-r--r-- | src/constants.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/constants.h b/src/constants.h index 85772c7..6501f3c 100644 --- a/src/constants.h +++ b/src/constants.h @@ -38,12 +38,6 @@ *PTR = RETVAL; \ } while(0) -#define usageprint(...) \ - do { \ - fprintf(stdout, "Usage: lpass " __VA_ARGS__); \ - return 1; \ - } while(0) - #ifdef DEBUG #define dbgprint(...) fprintf(stderr, "Debug: " __VA_ARGS__) #else |