File trustedgrub-compile-fixes of Package trustedgrub

--- TrustedGRUB-1.1.3/stage2/stage2.c.orig	2007-11-11 22:53:04.000000000 +0100
+++ TrustedGRUB-1.1.3/stage2/stage2.c	2008-09-16 14:46:13.000000000 +0200
@@ -512,10 +512,13 @@ menu_restart:
           /* print shortcut buffer */
           gotoxy(5, 3);
 	  if (search_mode)
+	      {
+		x = search_direction ? '?' : '/';
 	    grub_printf("%c%s%c%c%c%c",
-		        x, search_buf, x = search_direction ? '?' : '/',
+		        x, search_buf, x,
 			DISP_HORIZ,
 			search_found >= 0 ? DISP_HORIZ : 'X', DISP_HORIZ);
+	      }
 	  else if (shortcut_buf[0])
             grub_printf("<%s..>", shortcut_buf);
           else
--- TrustedGRUB-1.1.3/stage2/disk_io.c
+++ TrustedGRUB-1.1.3/stage2/disk_io.c
@@ -1828,7 +1828,7 @@ grub_read (char *buf, int len)
 #ifdef DEBUG
 	printf("Kernel: Data is in memory -> copying %d Bytes at file position: %d      \n", len, filepos);
 #endif
-	memcpy(buf, RAW_ADDR(kernel_real_addr + filepos), len);
+	memcpy(buf, (char*)(RAW_ADDR(kernel_real_addr + filepos)), len);
 	filepos += len;
 	return len;
     }
openSUSE Build Service is sponsored by