From ea8c8c2dac05b2b7788fefd0f3c7a7e00b17b6ae Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Nov 2009 21:27:21 +0100 Subject: Use typeof(boot_info) * i386/i386at/model_dep.c (i386at_init): Use typeof(boot_info) instead of hardcoding struct multiboot_info*. --- i386/i386at/model_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i386') 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. -- cgit v1.2.3