libdevs: bring back missing ‘const’ specifier

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 ‘*‘.
This commit is contained in:
Mariusz Wojtasik 2018-12-30 21:11:16 +01:00
parent 7ff9fad37a
commit 3ab5bad85c

View File

@ -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",