mirror of
https://github.com/AltraMayor/f3.git
synced 2025-08-03 18:46:00 -04:00
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:
parent
7ff9fad37a
commit
3ab5bad85c
@ -23,7 +23,7 @@
|
|||||||
#include "libutils.h"
|
#include "libutils.h"
|
||||||
#include "libdevs.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_GOOD] = "good",
|
||||||
[FKTY_BAD] = "bad",
|
[FKTY_BAD] = "bad",
|
||||||
[FKTY_LIMBO] = "limbo",
|
[FKTY_LIMBO] = "limbo",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user