summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2019-09-06 23:40:37 +0200
committerLaszlo Ersek <lersek@redhat.com>2019-10-09 09:40:10 +0200
commit1b3115baad7fc4f5d0f2e57bd16d7902516e185b (patch)
treec108f628da24d8da15e197004d5d5db597a1d1ff
parentc44501b313b3d2a28255d9ef5f8bc9644745859e (diff)
downloadedk2-1b3115baad7fc4f5d0f2e57bd16d7902516e185b.tar.gz
edk2-1b3115baad7fc4f5d0f2e57bd16d7902516e185b.tar.bz2
edk2-1b3115baad7fc4f5d0f2e57bd16d7902516e185b.zip
ShellPkg: stop taking EFI_HANDLE in place of SHELL_FILE_HANDLE
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>
-rw-r--r--ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c2
-rw-r--r--ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
index 3a1196f152..59f7eec376 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
@@ -24,7 +24,7 @@ STATIC CONST SHELL_PARAM_ITEM ParamList[] = {
**/
BOOLEAN
IsDirectoryEmpty (
- IN EFI_HANDLE FileHandle
+ IN SHELL_FILE_HANDLE FileHandle
)
{
EFI_STATUS Status;
diff --git a/ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c b/ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c
index 0f00344c81..a215f5774c 100644
--- a/ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c
+++ b/ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c
@@ -21,7 +21,7 @@
**/
EFI_STATUS
TouchFileByHandle (
- IN EFI_HANDLE Handle
+ IN SHELL_FILE_HANDLE Handle
)
{
EFI_STATUS Status;