]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pid1: remove duplicate const attribute
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Jan 2017 05:25:20 +0000 (00:25 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Jan 2017 19:04:55 +0000 (14:04 -0500)
gcc 7 started warning about this.

src/core/job.c

index f7c4c59c32990223b9efa57081b60814df89d619..00f7d7998f75d1220dcb8e89971facaa6c324965 100644 (file)
@@ -697,7 +697,7 @@ _pure_ static const char *job_get_status_message_format(Unit *u, JobType t, JobR
 static void job_print_status_message(Unit *u, JobType t, JobResult result) {
         static const struct {
                 const char *color, *word;
-        } const statuses[_JOB_RESULT_MAX] = {
+        } statuses[_JOB_RESULT_MAX] = {
                 [JOB_DONE]        = { ANSI_GREEN,            "  OK  " },
                 [JOB_TIMEOUT]     = { ANSI_HIGHLIGHT_RED,    " TIME " },
                 [JOB_FAILED]      = { ANSI_HIGHLIGHT_RED,    "FAILED" },