diff --git a/fs/procfs/fs_procfsproc.c b/fs/procfs/fs_procfsproc.c index 1cf2a58f84..10f4311e73 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 921a8422e8..7c970ac4ff 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" };