aboutsummaryrefslogtreecommitdiffstats
path: root/src/output.h
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-08-21 15:46:12 +0300
committerJoursoir <chat@joursoir.net>2022-08-22 00:40:17 +0300
commit3f22a4390ef116593158b4c9b36e923f6d853aee (patch)
tree30d9859d31423779274124969e1c52958be1f357 /src/output.h
parentb018da7fb3d400036c38a3af6554ab25e408b9c8 (diff)
downloadlock-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.h1
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 */