summaryrefslogtreecommitdiff
path: root/common/console.c
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2018-05-02 19:03:38 +0200
committerCommit Bot <commit-bot@chromium.org>2019-05-24 01:34:38 +0000
commitbc4efaf53d9f3b23014590825065ceba4adc8459 (patch)
treee89801bba78ebf8b3209524501065ded48b5932f /common/console.c
parent3890a8c96c0e3fcc9804cef5354036947d784505 (diff)
downloadchrome-ec-bc4efaf53d9f3b23014590825065ceba4adc8459.tar.gz
Shuffle const around
gcc 8.1 complains about duplicate const, and while some of these really are duplicate, others look like they were supposed to tighten the API contract so that variables are "const pointer to const data", but didn't have that effect. BUG=b:65441143 BRANCH=none TEST=building Chrome EC as part of upstream coreboot's build with a gcc 8.1 compiler now works (better. there are other issues left) Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://chromium-review.googlesource.com/1039812 Commit-Ready: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@google.com> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> (cherry picked from commit 85ddb2ce533cb0276aab7780238ec98e1abec2fe) Change-Id: I6016c5f282516471746f08d5714ea07ebdd10331 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1621258 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c
index 872f7beac1..7cd876e966 100644
--- a/common/console.c
+++ b/common/console.c
@@ -149,7 +149,7 @@ static const struct console_command *find_command(char *name)
}
-static const char const *errmsgs[] = {
+static const char *const errmsgs[] = {
"OK",
"Unknown error",
"Unimplemented",