summaryrefslogtreecommitdiff
path: root/sysutils/grub/patches/patch-an
blob: 49bb1f1b4d9ccf3e2c998f2f973ea0b0d67b3c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-an,v 1.3 2010/02/21 16:44:52 wiz Exp $

--- stage2/char_io.c
+++ stage2/char_io.c
@@ -1175,13 +1175,13 @@
 #endif /* ! STAGE1_5 */
 
 int
-memcheck (int addr, int len)
+memcheck (unsigned long int addr, unsigned long int len)
 {
 #ifdef GRUB_UTIL
-  auto int start_addr (void);
-  auto int end_addr (void);
+  auto unsigned long int start_addr (void);
+  auto int unsigned long end_addr (void);
   
-  auto int start_addr (void)
+  auto unsigned long int start_addr (void)
     {
       int ret;
 # if defined(HAVE_START_SYMBOL)
@@ -1192,7 +1192,7 @@
       return ret;
     }

-  auto int end_addr (void)
+  auto unsigned long int end_addr (void)
     {
       int ret;
 # if defined(HAVE_END_SYMBOL)