From 3ab5bad85c96a942f1d66d00547710ca8c5f60de Mon Sep 17 00:00:00 2001 From: Mariusz Wojtasik Date: Sun, 30 Dec 2018 21:11:16 +0100 Subject: [PATCH] =?UTF-8?q?libdevs:=20bring=20back=20missing=20=E2=80=98co?= =?UTF-8?q?nst=E2=80=99=20specifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 7ff9fad37a32 ("libdevs: fix compiler warning") fixed the warning by removing duplicate ‘const’ specifier. The original intent of two ‘const’ specifiers, was most likely to make non-mutable both: the ‘ftype_to_name‘ array itself and its elements, so bring back the second ‘const’, but in the correct place this time, i.e. after ‘*‘. --- libdevs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdevs.c b/libdevs.c index 1e17511..39e7072 100644 --- a/libdevs.c +++ b/libdevs.c @@ -23,7 +23,7 @@ #include "libutils.h" #include "libdevs.h" -static const char *ftype_to_name[FKTY_MAX] = { +static const char * const ftype_to_name[FKTY_MAX] = { [FKTY_GOOD] = "good", [FKTY_BAD] = "bad", [FKTY_LIMBO] = "limbo",