From ab05acbf89a4774eeb7f8958f8356ff122d737ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Mon, 7 May 2018 16:54:15 +0200 Subject: [PATCH] core: Mark openocd info variables read-only --- core/sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sched.c b/core/sched.c index 84151433d0..0bd9e0e317 100644 --- a/core/sched.c +++ b/core/sched.c @@ -65,13 +65,13 @@ static uint32_t runqueue_bitcache = 0; #endif FORCE_USED_SECTION -uint8_t max_threads = sizeof(sched_threads) / sizeof(thread_t*); +const uint8_t max_threads = sizeof(sched_threads) / sizeof(thread_t*); #ifdef DEVELHELP /* OpenOCD can't determine struct offsets and additionally this member is only * available if compiled with DEVELHELP */ FORCE_USED_SECTION -uint8_t _tcb_name_offset = offsetof(thread_t, name); +const uint8_t _tcb_name_offset = offsetof(thread_t, name); #endif #ifdef MODULE_SCHEDSTATISTICS