From: Jan Kiszka <[email protected]>

Signed-off-by: Jan Kiszka <[email protected]>
---
 include/utils.h | 2 +-
 utils.c         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/utils.h b/include/utils.h
index 2b4f862..101e30b 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -39,7 +39,7 @@ EFI_STATUS get_volumes(VOLUME_DESC **volumes, UINTN *count);
 EFI_STATUS close_volumes(VOLUME_DESC *volumes, UINTN count);
 EFI_DEVICE_PATH *FileDevicePathFromConfig(EFI_HANDLE device,
                                          CHAR16 *payloadpath);
-CHAR16 *GetBootMediumPath(CHAR16 *input);
+CHAR16 *GetBootMediumPath(const CHAR16 *input);
 
 typedef EFI_STATUS (*WATCHDOG_PROBE)(EFI_PCI_IO *, UINT16, UINT16, UINTN);
 #define _CONCAT(prefix, func) prefix  ## func
diff --git a/utils.c b/utils.c
index 6bc32a0..30f8513 100644
--- a/utils.c
+++ b/utils.c
@@ -244,7 +244,7 @@ EFI_DEVICE_PATH *FileDevicePathFromConfig(EFI_HANDLE device,
 
        if (prefixlen > 0) {
                for (UINTN v = 0; v < volume_count; v++) {
-                       CHAR16 *src;
+                       const CHAR16 *src;
                        switch (lm) {
                        case DOSFSLABEL:
                                src = volumes[v].fslabel;
@@ -282,7 +282,7 @@ EFI_DEVICE_PATH *FileDevicePathFromConfig(EFI_HANDLE device,
        return appendeddevpath;
 }
 
-CHAR16 *GetBootMediumPath(CHAR16 *input)
+CHAR16 *GetBootMediumPath(const CHAR16 *input)
 {
        CHAR16 *dst;
        UINTN len;
-- 
2.43.0

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/efibootguard-dev/4f81024322e65fdf4a3f94935c2e7105f1a67047.1747253700.git.jan.kiszka%40siemens.com.

Reply via email to