X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/60a917ef0909a3d22904e8204a0df64094af6e50..99970893290223f2006c3a0c6f34ab9eaf5cb4c9:/grubload/multiboot_c.c diff --git a/grubload/multiboot_c.c b/grubload/multiboot_c.c index ad421b4..572c3fd 100644 --- a/grubload/multiboot_c.c +++ b/grubload/multiboot_c.c @@ -24,11 +24,11 @@ struct mod_info void c_start(unsigned int magic, struct mb_info *wee) { - unsigned short *grubptr = 0x7CFE; + unsigned short *grubptr = (unsigned short *)0x7CFE; unsigned char smramc; int i; - void (*realmode)() = 0x4000; + void (*realmode)() = (void (*)()) 0x4000; puts("Magic is: "); puthex(magic);