summaryrefslogtreecommitdiffstats
path: root/src/tools/tools_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/tools_util.h')
-rw-r--r--src/tools/tools_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/tools_util.h b/src/tools/tools_util.h
index 84fc3be55..e8b253616 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) { \