aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/main.cpp')
-rw-r--r--ui/qt/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
index 8ddd0643bc..35f483fcb9 100644
--- a/ui/qt/main.cpp
+++ b/ui/qt/main.cpp
@@ -36,6 +36,7 @@
#include <ui/clopts_common.h>
#include <ui/cmdarg_err.h>
+#include <ui/exit_codes.h>
#include <ui/urls.h>
#include <wsutil/filesystem.h>
#include <wsutil/privileges.h>
@@ -127,11 +128,6 @@
#include <ui/qt/utils/qt_ui_utils.h>
-#define INVALID_OPTION 1
-#define INIT_FAILED 2
-#define INVALID_CAPABILITY 2
-#define INVALID_LINK_TYPE 2
-
//#define DEBUG_STARTUP_TIME 1
/*
# Log level
@@ -911,7 +907,7 @@ int main(int argc, char *qt_argv[])
}
if (caps->data_link_types == NULL) {
cmdarg_err("The capture device \"%s\" has no data link types.", device->name);
- ret_val = INVALID_LINK_TYPE;
+ ret_val = IFACE_HAS_NO_LINK_TYPES;
goto clean_exit;
}
#ifdef _WIN32