summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-15 11:08:57 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-15 12:43:26 +0200
commitfb7b9e5893a98cc41c6769383fe4bc4dbcc121e5 (patch)
treef55dbb39795275def80a1feabba57ce748ecab07 /kern
parent8259090d7394b667fbca4d4b05153e980a39db6b (diff)
kern: fix compiler warning
* kern/bootstrap.c (bootstrap_create): Move declaration of `n' into the #ifdef.
Diffstat (limited to 'kern')
-rw-r--r--kern/bootstrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index cb0f976..6ec110b 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -110,8 +110,8 @@ task_insert_send_right(
void bootstrap_create(void)
{
int compat;
- int n = 0;
#ifdef MACH_XEN
+ int n = 0;
struct multiboot_module *bmods = ((struct multiboot_module *)
boot_info.mod_start);
if (bmods)