diff options
-rw-r--r-- | lib/Plugins/Bugzilla.cpp | 2 | ||||
-rw-r--r-- | lib/Plugins/Catcut.cpp | 2 | ||||
-rw-r--r-- | lib/Plugins/SQLite3.cpp | 2 | ||||
-rw-r--r-- | src/CLI/CLI.cpp | 13 |
4 files changed, 9 insertions, 10 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index 1e79a665..7ddacf7c 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -16,7 +16,7 @@ static void create_new_bug_description(const map_crash_report_t& pCrashReport, std::string& pDescription) { - pDescription = "abrt detected a crash.\n\n"; + pDescription = "abrt "VERSION" detected a crash.\n\n"; pDescription += make_description_bz(pCrashReport); } diff --git a/lib/Plugins/Catcut.cpp b/lib/Plugins/Catcut.cpp index 7fd6e898..cf1d7d9c 100644 --- a/lib/Plugins/Catcut.cpp +++ b/lib/Plugins/Catcut.cpp @@ -33,7 +33,7 @@ static void create_new_bug_description(const map_crash_report_t& pCrashReport, s "-----\n" + pCrashReport.find(CD_COMMENT)->second[CD_CONTENT]; } - pDescription = "\nabrt detected a crash.\n" + + pDescription = "\nabrt "VERSION" detected a crash.\n" + howToReproduce + comment + "\n\nAdditional information\n" diff --git a/lib/Plugins/SQLite3.cpp b/lib/Plugins/SQLite3.cpp index 709a16c1..cc639da3 100644 --- a/lib/Plugins/SQLite3.cpp +++ b/lib/Plugins/SQLite3.cpp @@ -34,7 +34,7 @@ // after a while, we can drop support for update, so a table can stay in // normal limits -static const char* upate_sql_commands[][ABRT_TABLE_VERSION + 1] = { +static const char *const upate_sql_commands[][ABRT_TABLE_VERSION + 1] = { // v0 -> * { // v0 -> v0 diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp index 149e9364..9f2db3f0 100644 --- a/src/CLI/CLI.cpp +++ b/src/CLI/CLI.cpp @@ -98,20 +98,19 @@ static const struct option longopts[] = }; /* Gets the program name from the first command line argument. */ -static char *progname(char *argv0) +static const char *progname(const char *argv0) { - char* name = strrchr(argv0, '/'); + const char* name = strrchr(argv0, '/'); if (name) return ++name; - else - return argv0; + return argv0; } /* Prints abrt-cli version and some help text. */ static void usage(char *argv0) { - char *name = progname(argv0); - printf("%s " VERSION "\n\n", name); + const char *name = progname(argv0); + printf("%s "VERSION"\n\n", name); /* Message has embedded tabs. */ printf(_("Usage: %s [OPTION]\n\n" @@ -166,7 +165,7 @@ int main(int argc, char** argv) return 1; case 'V': case OPT_VERSION: - printf("%s " VERSION "\n", progname(argv[0])); + printf("%s "VERSION"\n", progname(argv[0])); return 0; } if (c == -1) |