summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1997-08-16 19:07:20 +0000
committerwollman <wollman@FreeBSD.org>1997-08-16 19:07:20 +0000
commit6e64800860691106aceca922da8c170eba40930c (patch)
tree633dd7e183ba880a2b8d22cdf421931c0561c52b /sys/kern/kern_synch.c
parentfa45a51529b99c668d63269fe0572380296cfe44 (diff)
downloadFreeBSD-src-6e64800860691106aceca922da8c170eba40930c.zip
FreeBSD-src-6e64800860691106aceca922da8c170eba40930c.tar.gz
Dejulianize DIAGNOSTIC panic code. The types are wrong; probably there's
a missing dereference.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index c96603c..2126425 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_synch.c 8.9 (Berkeley) 5/19/95
- * $Id: kern_synch.c,v 1.33 1997/08/08 22:48:57 julian Exp $
+ * $Id: kern_synch.c,v 1.34 1997/08/13 19:29:33 julian Exp $
*/
#include "opt_ktrace.h"
@@ -349,14 +349,16 @@ tsleep(ident, priority, wmesg, timo)
return (0);
}
#ifdef DIAGNOSTIC
- if( p == NULL )
+ if(p == NULL)
panic("tsleep1");
if (ident == NULL || p->p_stat != SRUN)
panic("tsleep");
/* XXX This is not exhaustive, just the most common case */
if ((p->p_procq.tqe_next != NULL)
- && (p->p_procq.tqe_next == p->p_procq.tqe_prev)
- && (*p->p_procq.tqe_prev == p))
+#if 0 /* XXX this is impossible... the types don't even match */
+ && (p->p_procq.tqe_next == p->p_procq.tqe_prev)
+#endif
+ && (*p->p_procq.tqe_prev == p))
panic("sleeping process on run queue");
#endif
p->p_wchan = ident;
OpenPOWER on IntegriCloud