]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: stop taking EFI_HANDLE in place of SHELL_FILE_HANDLE
authorLaszlo Ersek <lersek@redhat.com>
Fri, 6 Sep 2019 21:40:37 +0000 (23:40 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 9 Oct 2019 07:40:10 +0000 (09:40 +0200)
The TouchFileByHandle() and IsDirectoryEmpty() functions are passed
SHELL_FILE_HANDLE parameters, and they use those parameters correctly.
However, their parameter lists say EFI_HANDLE.

Spell out the right type in the parameter lists.

In practice, this change is a no-op (because, quite regrettably, both
EFI_HANDLE and SHELL_FILE_HANDLE are specified to be typedefs of (VOID*)).

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c

index 3a1196f1529e4b113550c4a2b0f55024c42f8b40..59f7eec376f25e4b065261a4625e95395155f0e0 100644 (file)
@@ -24,7 +24,7 @@ STATIC CONST SHELL_PARAM_ITEM ParamList[] = {
 **/\r
 BOOLEAN\r
 IsDirectoryEmpty (\r
-  IN EFI_HANDLE   FileHandle\r
+  IN SHELL_FILE_HANDLE   FileHandle\r
   )\r
 {\r
   EFI_STATUS      Status;\r
index 0f00344c815e21920ba162329802bc4e0f4b6262..a215f5774c699004328754dc3d19cb9b012d212e 100644 (file)
@@ -21,7 +21,7 @@
 **/\r
 EFI_STATUS\r
 TouchFileByHandle (\r
-  IN EFI_HANDLE Handle\r
+  IN SHELL_FILE_HANDLE Handle\r
   )\r
 {\r
   EFI_STATUS    Status;\r