diff options
author | Guy Harris <gharris@sonic.net> | 2021-04-13 01:23:21 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-04-13 01:23:21 -0700 |
commit | 9b70baac96430598b24ac9d6f14d14c80151f2e4 (patch) | |
tree | 6c8209fbe7c1ea6f950ce55bf9c746a968b1e69d /randpkt.c | |
parent | 20b662b01d5871e831030f5760bd21b6e2fc0935 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. |