aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/nuttx.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-10-28 23:39:34 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-11-04 17:39:11 +0000
commitd3bff4e5c42b6b3af65e31fbf2409fa3d88d1a03 (patch)
treee1cc4e0d54532c764898fff71baf32999105d0e4 /src/rtos/nuttx.c
parent21bc36c4d7c813983f7ccf3ae958d96198867136 (diff)
downloadriscv-openocd-d3bff4e5c42b6b3af65e31fbf2409fa3d88d1a03.zip
riscv-openocd-d3bff4e5c42b6b3af65e31fbf2409fa3d88d1a03.tar.gz
riscv-openocd-d3bff4e5c42b6b3af65e31fbf2409fa3d88d1a03.tar.bz2
rtos: declare local symbols as static
Functions and variables that are not used outside the file should be declared as static. Change-Id: I9731a35496cd1c7421563c8961da5fa0e3cc71c3 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5894 Tested-by: jenkins Reviewed-by: Jonathan McDowell <noodles-openocd@earth.li>
Diffstat (limited to 'src/rtos/nuttx.c')
-rw-r--r--src/rtos/nuttx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/nuttx.c b/src/rtos/nuttx.c
index 3c90625..19b93ba 100644
--- a/src/rtos/nuttx.c
+++ b/src/rtos/nuttx.c
@@ -72,7 +72,7 @@ struct tcb {
uint8_t dat[512];
};
-struct {
+static struct {
uint32_t addr;
uint32_t prio;
} g_tasklist[TASK_QUEUE_NUM];