summaryrefslogtreecommitdiffstats
path: root/src/daemon/Daemon.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-12 17:30:35 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-12 17:30:35 +0200
commitae7f458689a5c99f67172e243f5f4a6b9047e016 (patch)
tree56cf535fd251272e092d8e2b0df69e581cf55a29 /src/daemon/Daemon.cpp
parentc8fd714f07c2e7f993146d9a9d60d28f729ba6be (diff)
downloadabrt-ae7f458689a5c99f67172e243f5f4a6b9047e016.tar.gz
abrt-ae7f458689a5c99f67172e243f5f4a6b9047e016.tar.xz
abrt-ae7f458689a5c99f67172e243f5f4a6b9047e016.zip
Add a warning comment that options and their enums should be in sync
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/daemon/Daemon.cpp')
-rw-r--r--src/daemon/Daemon.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/daemon/Daemon.cpp b/src/daemon/Daemon.cpp
index 97cafe82..b8c23edd 100644
--- a/src/daemon/Daemon.cpp
+++ b/src/daemon/Daemon.cpp
@@ -858,17 +858,15 @@ static void sanitize_dump_dir_rights()
ensure_writable_dir(VAR_RUN"/abrt", 0755, "root");
}
+static char *timeout_opt;
+static const char* abrtd_usage = _("abrtd [options]");
enum {
OPT_v = 1 << 0,
OPT_d = 1 << 1,
OPT_s = 1 << 2,
OPT_t = 1 << 3,
};
-
-static char *timeout_opt;
-
-static const char* abrtd_usage = _("abrtd [options]");
-
+/* Keep enum above and order of options below in sync! */
static struct options abrtd_options[] = {
OPT__VERBOSE(&g_verbose),
OPT_BOOL( 'd' , 0, NULL, _("Do not daemonize")),