--- xinu/sys/insertd.c 2018/04/24 17:39:02 1.1.1.1 +++ xinu/sys/insertd.c 2018/04/24 17:39:19 1.1.1.2 @@ -13,13 +13,12 @@ insertd(pid, head, key) int head; int key; { - int next; /* runs through list */ int prev; /* follows next through list */ - if (key < 0 || key > MAXSHORT) - return (SYSERR); - +#ifdef DEBUG + dotrace("insertd", &pid, 3); +#endif for(prev=head,next=q[head].qnext ; q[next].qkey < key ; prev=next,next=q[next].qnext) key -= q[next].qkey;