summaryrefslogtreecommitdiffstats
path: root/common/efi/devicepath.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/efi/devicepath.c')
-rw-r--r--common/efi/devicepath.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/efi/devicepath.c b/common/efi/devicepath.c
index 6341ca005b..d50d4f9469 100644
--- a/common/efi/devicepath.c
+++ b/common/efi/devicepath.c
@@ -470,9 +470,10 @@ device_path_from_handle(efi_handle_t Handle)
}
static struct efi_device_path *
-unpack_device_path(struct efi_device_path *dev_path)
+unpack_device_path(const struct efi_device_path *dev_path)
{
- struct efi_device_path *Src, *Dest, *new_path;
+ const struct efi_device_path *Src;
+ struct efi_device_path *Dest, *new_path;
unsigned long Size;
/* Walk device path and round sizes to valid boundaries */