aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-04-13 01:23:21 -0700
committerGuy Harris <gharris@sonic.net>2021-04-13 01:23:21 -0700
commit9b70baac96430598b24ac9d6f14d14c80151f2e4 (patch)
tree6c8209fbe7c1ea6f950ce55bf9c746a968b1e69d /randpkt.c
parent20b662b01d5871e831030f5760bd21b6e2fc0935 (diff)
Add a new header defining commonly-used exit codes.
"Commonly-used" meaning "used by more than one source file". Clean up the exit codes, combining some duplicates with different names, and using some instead of raw numbers in some places.
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/randpkt.c b/randpkt.c
index 4604803b3e..8a85717bc5 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -18,6 +18,7 @@
#include <ui/clopts_common.h>
#include <ui/failure_message.h>
#include <ui/cmdarg_err.h>
+#include <ui/exit_codes.h>
#include <wsutil/file_util.h>
#include <wsutil/filesystem.h>
#include <wsutil/privileges.h>
@@ -44,9 +45,9 @@
#include "randpkt_core/randpkt_core.h"
-#define INVALID_OPTION 1
+/* Additional exit codes */
#define INVALID_TYPE 2
-#define CLOSE_ERROR 2
+#define CLOSE_ERROR 2
/*
* Report an error in command-line arguments.