[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCHv2] osdep/hurd/getroot: Fix 64bit build
From: |
Samuel Thibault |
Subject: |
[PATCHv2] osdep/hurd/getroot: Fix 64bit build |
Date: |
Tue, 23 Jan 2024 21:47:36 +0100 |
file_get_fs_options takes a mach_msg_type_number_t (32 bit), not a size_t
(64 bit on 64-bit platforms).
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
---
grub-core/osdep/hurd/getroot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/osdep/hurd/getroot.c b/grub-core/osdep/hurd/getroot.c
index 0efefdab4..b849700e6 100644
--- a/grub-core/osdep/hurd/getroot.c
+++ b/grub-core/osdep/hurd/getroot.c
@@ -58,7 +58,7 @@ grub_util_find_hurd_root_device (const char *path)
file_t file;
error_t err;
char *argz = NULL, *name = NULL, *ret;
- size_t argz_len = 0;
+ mach_msg_type_number_t argz_len = 0;
int i;
file = file_name_lookup (path, 0, 0);
--
2.43.0
- [PATCHv2] osdep/hurd/getroot: Fix 64bit build,
Samuel Thibault <=