Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:vlefebvre:unified
grub2
0006-use-grub_efi_boolean_t-instead-of-bool.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-use-grub_efi_boolean_t-instead-of-bool.patch of Package grub2
From 4ff3bf7e79848673f983ae81bed551e0b811822c Mon Sep 17 00:00:00 2001 From: Michael Chang <mchang@suse.com> Date: Mon, 24 Apr 2023 14:22:35 +0800 Subject: [PATCH 7/7] Use grub_efi_boolean_t instead of bool --- grub-core/kern/efi/sb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grub-core/kern/efi/sb.c b/grub-core/kern/efi/sb.c index 6029ae011..6a95eeeea 100644 --- a/grub-core/kern/efi/sb.c +++ b/grub-core/kern/efi/sb.c @@ -117,7 +117,7 @@ struct pe_requirements { grub_uint16_t subsystem; }; -static bool verify_pe_requirements (void *buf, grub_size_t size, +static grub_efi_boolean_t verify_pe_requirements (void *buf, grub_size_t size, struct pe_requirements *constraints) { grub_uint32_t pe_image_header; @@ -126,15 +126,15 @@ static bool verify_pe_requirements (void *buf, grub_size_t size, pe_image_header = grub_pe32_get_pe_image_header (buf, size); if (pe_image_header == 0) - return false; + return 0; pe_hdr = (void *) ((char *) buf + pe_image_header); grub_memcpy (&subsystem, &pe_hdr->optional_header.subsystem, sizeof (subsystem)); subsystem = grub_le_to_cpu16 (subsystem); if (subsystem != constraints->subsystem) - return false; + return 0; - return true; + return 1; } static struct pe_requirements kernel_pe_requirements = { -- 2.39.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor