b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From: David Michael <fedora.dm0@gmail.com> |
| 2 | Date: Fri, 5 Jul 2019 07:45:59 -0400 |
| 3 | Subject: [PATCH] verifiers: Blocklist fallout cleanup |
| 4 | |
| 5 | Blocklist fallout cleanup after commit 5c6f9bc15 (generic/blocklist: Fix |
| 6 | implicit declaration of function grub_file_filter_disable_compression()). |
| 7 | |
| 8 | Signed-off-by: David Michael <fedora.dm0@gmail.com> |
| 9 | Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> |
| 10 | --- |
| 11 | |
| 12 | --- a/grub-core/osdep/generic/blocklist.c |
| 13 | +++ b/grub-core/osdep/generic/blocklist.c |
| 14 | @@ -59,7 +59,7 @@ grub_install_get_blocklist (grub_device_ |
| 15 | |
| 16 | grub_disk_cache_invalidate_all (); |
| 17 | |
| 18 | - file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS); |
| 19 | + file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | GRUB_FILE_TYPE_NO_DECOMPRESS); |
| 20 | if (file) |
| 21 | { |
| 22 | if (grub_file_size (file) != core_size) |
| 23 | @@ -116,7 +116,7 @@ grub_install_get_blocklist (grub_device_ |
| 24 | |
| 25 | grub_file_t file; |
| 26 | /* Now read the core image to determine where the sectors are. */ |
| 27 | - file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS); |
| 28 | + file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | GRUB_FILE_TYPE_NO_DECOMPRESS); |
| 29 | if (! file) |
| 30 | grub_util_error ("%s", grub_errmsg); |
| 31 | |