summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-22 21:27:21 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-22 21:27:21 +0100
commitea8c8c2dac05b2b7788fefd0f3c7a7e00b17b6ae (patch)
tree29a68d4ad077d4af9bd0fa9e5f9df151b086da07
parentb395eb639cbf800a24c0631835069eb8629d58f8 (diff)
Use typeof(boot_info)
* i386/i386at/model_dep.c (i386at_init): Use typeof(boot_info) instead of hardcoding struct multiboot_info*.
-rw-r--r--i386/i386at/model_dep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 4ba617c..573ca6d 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -371,7 +371,7 @@ i386at_init(void)
void c_boot_entry(vm_offset_t bi)
{
/* Stash the boot_image_info pointer. */
- boot_info = *(struct multiboot_info*)phystokv(bi);
+ boot_info = *(typeof(boot_info)*)phystokv(bi);
int cpu_type;
/* Before we do _anything_ else, print the hello message.