diff options
Diffstat (limited to 'src/tools/tools_util.h')
-rw-r--r-- | src/tools/tools_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/tools_util.h b/src/tools/tools_util.h index 84fc3be5..e8b25361 100644 --- a/src/tools/tools_util.h +++ b/src/tools/tools_util.h @@ -27,6 +27,12 @@ #include "util/util.h" +#define BAD_POPT_PARAMS(pc, msg, val, label) do { \ + usage(pc, msg); \ + val = EXIT_FAILURE; \ + goto label; \ +} while(0) + #define CHECK_ROOT(val, prg_name) do { \ val = getuid(); \ if (val != 0) { \ |