From de6c4a0903325d14fed89de6cef2572dc141c2fe Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 8 Oct 2010 16:18:24 +0200 Subject: Remove arrays in usage text, use a single string instead Currently, usage is an array of pointers to string. It is meant to support this: usage: foo --bar or: foo --baz or: foo -z The patch removes this and makes usage just a string: usage: foo --bar Why remove this? (1) We can achieve old format by using the usage string with many lines: usage = "foo --bar\n" " or: foo --baz\n" " or: foo -z"; (2) We don't use multi-line usage anyway. Signed-off-by: Denys Vlasenko --- src/daemon/Daemon.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/daemon/Daemon.cpp') diff --git a/src/daemon/Daemon.cpp b/src/daemon/Daemon.cpp index 3689a42b..f6073134 100644 --- a/src/daemon/Daemon.cpp +++ b/src/daemon/Daemon.cpp @@ -863,10 +863,7 @@ static void sanitize_dump_dir_rights() static int daemonize_opt, syslog_opt; static char *timeout_opt; -static const char * const abrtd_usage[] = { - _("abrtd [options]"), - NULL -}; +static const char* abrtd_usage = _("abrtd [options]"); static struct options abrtd_options[] = { OPT__VERBOSE(&g_verbose), -- cgit