diff --git a/fs/procfs/fs_procfsproc.c b/fs/procfs/fs_procfsproc.c index 1cf2a58f84f7b..10f4311e73507 100644 --- a/fs/procfs/fs_procfsproc.c +++ b/fs/procfs/fs_procfsproc.c @@ -155,7 +155,7 @@ struct proc_envinfo_s * Private Data ****************************************************************************/ -static FAR const char *g_policy[4] = +static FAR const char * const g_policy[4] = { "SCHED_FIFO", "SCHED_RR", "SCHED_SPORADIC" }; diff --git a/sched/misc/assert.c b/sched/misc/assert.c index 921a8422e8f97..7c970ac4ffe34 100644 --- a/sched/misc/assert.c +++ b/sched/misc/assert.c @@ -93,7 +93,7 @@ static uintptr_t g_last_regs[XCPTCONTEXT_REGS] aligned_data(XCPTCONTEXT_ALIGN); -static FAR const char *g_policy[4] = +static FAR const char * const g_policy[4] = { "FIFO", "RR", "SPORADIC" };