From ae7f458689a5c99f67172e243f5f4a6b9047e016 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 12 Oct 2010 17:30:35 +0200 Subject: Add a warning comment that options and their enums should be in sync Signed-off-by: Denys Vlasenko --- src/daemon/Daemon.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/daemon/Daemon.cpp') 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")), -- cgit