efi_loader: correct types for EFI_LOADED_IMAGE_PROTOCOL
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 3 Apr 2018 20:29:33 +0000 (22:29 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Apr 2018 09:37:47 +0000 (11:37 +0200)
We should not use void * but specific types for
* device_handle
* file_path

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_api.h

index 2be470b23787f6ea7e61b9fe56b1b927ae1d5fb7..f5bb6ec1719f6eea571a3ae854efeb263a737333 100644 (file)
@@ -318,8 +318,8 @@ struct efi_loaded_image {
        u32 revision;
        void *parent_handle;
        struct efi_system_table *system_table;
-       void *device_handle;
-       void *file_path;
+       efi_handle_t device_handle;
+       struct efi_device_path *file_path;
        void *reserved;
        u32 load_options_size;
        void *load_options;