From 894845d5ebd9cee8e859de6ede7fbd72af80656f Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Tue, 2 Feb 2021 21:58:22 +0000 Subject: [PATCH] procs: tbl. Need to check this... --- src/bin/system/process.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/bin/system/process.c b/src/bin/system/process.c index 19f7009..8e90688 100644 --- a/src/bin/system/process.c +++ b/src/bin/system/process.c @@ -58,13 +58,6 @@ proc_info_kthreads_show_get(void) return _show_kthreads; } -typedef struct _States States; -struct _States -{ - int id; - const char *name; -}; - static const char * _states[255]; static void @@ -80,18 +73,18 @@ _states_init(void) _states['Z'] = "zombie"; #else _states[SIDL] = "idle"; - _states[SRUN] = "run";, + _states[SRUN] = "run"; _states[SSLEEP] = "sleep"; _states[SSTOP] = "stop"; #if !defined(__MacOS__) #if !defined(__OpenBSD__) _states[SWAIT] = "wait"; - _states[SLOCK] = "lock";, + _states[SLOCK] = "lock"; _states[SZOMB] = "zombie"; #endif #if defined(__OpenBSD__) _states[SDEAD] = "dead"; - _states[SONPROC] = "onproc"}; + _states[SONPROC] = "onproc"; #endif #endif #endif