X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/60a917ef0909a3d22904e8204a0df64094af6e50..7e16b8e6b3c3aab2c91d9b54c8953201e111be50:/grubload/multiboot_c.c?ds=sidebyside 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);