comparison src/proc.c @ 22:397e74cbf14e

fix warnings
author mir3636
date Sat, 07 Apr 2018 19:05:00 +0900
parents bf2f70fa8852
children 36bd61f5c847
comparison
equal deleted inserted replaced
21:45035047d186 22:397e74cbf14e
500 // Print a process listing to console. For debugging. Runs when user 500 // Print a process listing to console. For debugging. Runs when user
501 // types ^P on console. No lock to avoid wedging a stuck machine further. 501 // types ^P on console. No lock to avoid wedging a stuck machine further.
502 void procdump(void) 502 void procdump(void)
503 { 503 {
504 static char *states[] = { 504 static char *states[] = {
505 [UNUSED] "unused", 505 [UNUSED] ="unused",
506 [EMBRYO] "embryo", 506 [EMBRYO] ="embryo",
507 [SLEEPING] "sleep ", 507 [SLEEPING] ="sleep ",
508 [RUNNABLE] "runble", 508 [RUNNABLE] ="runble",
509 [RUNNING] "run ", 509 [RUNNING] ="run ",
510 [ZOMBIE] "zombie" 510 [ZOMBIE] ="zombie"
511 }; 511 };
512 512
513 struct proc *p; 513 struct proc *p;
514 char *state; 514 char *state;
515 515