From 3f22a4390ef116593158b4c9b36e923f6d853aee Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sun, 21 Aug 2022 15:46:12 +0300 Subject: 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. --- src/constants.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/constants.h') 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 -- cgit v1.2.3-18-g5258