zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 884547f177d1f15934da4276cd301acd93cb1657 (tree)
parent 495e9961695f97631abd0e739cb2190e809352b5
Author: mason1920 <mason1920@protonmail.com>
Date:   Wed, 19 May 2021 17:47:13 -0400

Const correct GUID parameter of getInfo and setInfo


Diffstat:
Mlib/std/os/uefi/protocols/file_protocol.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/std/os/uefi/protocols/file_protocol.zig b/lib/std/os/uefi/protocols/file_protocol.zig @@ -49,11 +49,11 @@ pub const FileProtocol = extern struct { return self._set_position(self, position); } - pub fn getInfo(self: *const FileProtocol, information_type: *align(8) Guid, buffer_size: *usize, buffer: [*]u8) Status { + pub fn getInfo(self: *const FileProtocol, information_type: *align(8) const Guid, buffer_size: *usize, buffer: [*]u8) Status { return self._get_info(self, information_type, buffer_size, buffer); } - pub fn setInfo(self: *const FileProtocol, information_type: *align(8) Guid, buffer_size: usize, buffer: [*]const u8) Status { + pub fn setInfo(self: *const FileProtocol, information_type: *align(8) const Guid, buffer_size: usize, buffer: [*]const u8) Status { return self._set_info(self, information_type, buffer_size, buffer); }