]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fix a compilation error
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 25 Dec 2010 23:57:03 +0000 (00:57 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 25 Dec 2010 23:57:03 +0000 (00:57 +0100)
grub-core/loader/i386/pc/freedos.c

index 67d97e2466d7449a2cae6b6182350ea46778cc81..0ae815490d8955c14df22da5d4d7950ee2801d65 100644 (file)
@@ -97,7 +97,7 @@ grub_cmd_freedos (grub_command_t cmd __attribute__ ((unused)),
   kernelsyssize = grub_file_size (file);
   {
     grub_relocator_chunk_t ch;
-    err = grub_relocator_alloc_chunk_addr (rel, &ch, GRUB_NTLDR_SEGMENT << 4,
+    err = grub_relocator_alloc_chunk_addr (rel, &ch, GRUB_FREEDOS_SEGMENT << 4,
                                           kernelsyssize);
     if (err)
       goto fail;
@@ -105,7 +105,7 @@ grub_cmd_freedos (grub_command_t cmd __attribute__ ((unused)),
   }
 
   if (grub_file_read (file, kernelsys, kernelsyssize)
-      != (grub_ssize_t) ntldrsize)
+      != (grub_ssize_t) kernelsyssize)
     goto fail;
  
   grub_loader_set (grub_freedos_boot, grub_freedos_unload, 1);
@@ -116,7 +116,7 @@ grub_cmd_freedos (grub_command_t cmd __attribute__ ((unused)),
   if (file)
     grub_file_close (file);
 
-  grub_ntldr_unload ();
+  grub_freedos_unload ();
 
   return grub_errno;
 }