wok-current view grub/stuff/max2g.diff @ rev 25368

libmpd: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 29 10:44:25 2022 +0000 (2022-07-29)
parents
children
line source
1 --- grub-0.97/stage2/char_io.c
2 +++ grub-0.97/stage2/char_io.c
3 @@ -1175,13 +1175,13 @@ grub_strlen (const char *str)
4 #endif /* ! STAGE1_5 */
6 int
7 -memcheck (int addr, int len)
8 +memcheck (unsigned long int addr, unsigned long int len)
9 {
10 #ifdef GRUB_UTIL
11 - auto int start_addr (void);
12 - auto int end_addr (void);
13 + auto unsigned long int start_addr (void);
14 + auto int unsigned long end_addr (void);
16 - auto int start_addr (void)
17 + auto unsigned long int start_addr (void)
18 {
19 int ret;
20 # if defined(HAVE_START_SYMBOL)
21 @@ -1192,7 +1192,7 @@ memcheck (int addr, int len)
22 return ret;
23 }
25 - auto int end_addr (void)
26 + auto unsigned long int end_addr (void)
27 {
28 int ret;
29 # if defined(HAVE_END_SYMBOL)
30 --- grub-0.97/stage2/shared.h
31 +++ grub-0.97/stage2/shared.h
32 @@ -911,7 +911,7 @@ int substring (const char *s1, const cha
33 int nul_terminate (char *str);
34 int get_based_digit (int c, int base);
35 int safe_parse_maxint (char **str_ptr, int *myint_ptr);
36 -int memcheck (int start, int len);
37 +int memcheck (unsigned long int start, unsigned long int len);
38 void grub_putstr (const char *str);
40 #ifndef NO_DECOMPRESSION