aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Posix-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/Posix-GCC/main.c')
-rw-r--r--demos/Posix-GCC/main.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/demos/Posix-GCC/main.c b/demos/Posix-GCC/main.c
index 543386a85..4904edec0 100644
--- a/demos/Posix-GCC/main.c
+++ b/demos/Posix-GCC/main.c
@@ -51,23 +51,7 @@ static void cmd_mem(BaseChannel *chp, int argc, char *argv[]) {
}
static void cmd_threads(BaseChannel *chp, int argc, char *argv[]) {
- static const char *states[] = {
- "READY",
- "CURRENT",
- "SUSPENDED",
- "WTSEM",
- "WTMTX",
- "WTCOND",
- "SLEEPING",
- "WTEXIT",
- "WTOREVT",
- "WTANDEVT",
- "SNDMSGQ",
- "SNDMSG",
- "WTMSG",
- "WTQUEUE",
- "FINAL"
- };
+ static const char *states[] = {THD_STATE_NAMES};
Thread *tp;
(void)argv;