summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-04 05:49:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-04 05:49:13 +0000
commit2ed83c87351d2afc0ecc1c09e6a5cfb85bb0c660 (patch)
treeea9b3af6f26ee6fcdd447f5ada80fedbbd8725fa
parentcec5b8977f7037d14b51384115e001d7f71ad6f7 (diff)
older gcc (like real C) does not let you declare local variables after
doing functional code; ie. LIST_INIT()
-rw-r--r--sys/kern/kern_proc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index de57bbe7b1d..ea7a33bce5c 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_proc.c,v 1.29 2005/12/03 18:09:08 tedu Exp $ */
+/* $OpenBSD: kern_proc.c,v 1.30 2005/12/04 05:49:12 deraadt Exp $ */
/* $NetBSD: kern_proc.c,v 1.14 1996/02/09 18:59:41 christos Exp $ */
/*
@@ -81,13 +81,13 @@ void pgrpdump(void);
void
procinit(void)
{
+#ifdef RTHREADS
+ extern struct pool sleeper_pool;
+#endif
LIST_INIT(&allproc);
LIST_INIT(&zombproc);
-#ifdef RTHREADS
- extern struct pool sleeper_pool;
-#endif
pidhashtbl = hashinit(maxproc / 4, M_PROC, M_NOWAIT, &pidhash);
pgrphashtbl = hashinit(maxproc / 4, M_PROC, M_NOWAIT, &pgrphash);