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/output.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/output.h')
-rw-r--r-- | src/output.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output.h b/src/output.h index 3be5f59..7925e28 100644 --- a/src/output.h +++ b/src/output.h @@ -22,5 +22,6 @@ #include <stdio.h> #define print_error(...) fprintf(stderr, __VA_ARGS__) +#define usageprint(...) fprintf(stderr, "Usage: lpass " __VA_ARGS__) #endif /* LPASS_OUTPUT_H */ |