On 9/17/19 9:49 PM, Laszlo Ersek wrote: > 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.car...@intel.com> > Cc: Ray Ni <ray...@intel.com> > Cc: Zhichao Gao <zhichao....@intel.com> > Signed-off-by: Laszlo Ersek <ler...@redhat.com> > --- > > Notes: > tested: rm, touch > > ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c | 2 +- > ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c > b/ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c > index 3a1196f1529e..59f7eec376f2 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 0f00344c815e..a215f5774c69 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; >
Reviewed-by: Philippe Mathieu-Daude <phi...@redhat.com> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#47846): https://edk2.groups.io/g/devel/message/47846 Mute This Topic: https://groups.io/mt/34180233/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-