summaryrefslogtreecommitdiffstats
path: root/src/daemon/Daemon.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-08 16:18:24 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-08 16:18:24 +0200
commitde6c4a0903325d14fed89de6cef2572dc141c2fe (patch)
tree555cdf7408df9d26a18f71635a7fdf2cd22e686f /src/daemon/Daemon.cpp
parent81df7a41538faa1f4fbfb54ea33e1448d70cfc76 (diff)
downloadabrt-de6c4a0903325d14fed89de6cef2572dc141c2fe.tar.gz
abrt-de6c4a0903325d14fed89de6cef2572dc141c2fe.tar.xz
abrt-de6c4a0903325d14fed89de6cef2572dc141c2fe.zip
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 <dvlasenk@redhat.com>
Diffstat (limited to 'src/daemon/Daemon.cpp')
-rw-r--r--src/daemon/Daemon.cpp5
1 files changed, 1 insertions, 4 deletions
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),