From 94c5492c8a510633b2d78ce7518bca0c1720ebe0 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Sun, 12 Jul 2009 03:43:03 +0000 Subject: [PATCH] fix parameter type git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8904 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Application/ShellCTestApp/ShellCTestApp.c | 2 +- ShellPkg/Include/Library/ShellCEntryLib.h | 68 +++++++++---------- .../UefiShellCEntryLib/UefiShellCEntryLib.c | 7 -- 3 files changed, 35 insertions(+), 42 deletions(-) diff --git a/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c b/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c index 0a60af0932..8b3762e167 100644 --- a/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c +++ b/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c @@ -35,7 +35,7 @@ INTN EFIAPI ShellAppMain ( - IN INTN Argc, + IN UINTN Argc, IN CHAR16 **Argv ) { diff --git a/ShellPkg/Include/Library/ShellCEntryLib.h b/ShellPkg/Include/Library/ShellCEntryLib.h index cd09748832..9f5969cf35 100644 --- a/ShellPkg/Include/Library/ShellCEntryLib.h +++ b/ShellPkg/Include/Library/ShellCEntryLib.h @@ -1,34 +1,34 @@ -/** @file - Provides application point extension for "C" style main funciton - -Copyright (c) 2006 - 2009, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -**/ - -/** - UEFI application entry point which has an interface similar to a - standard C main function. - - The ShellCEntryLib library instance wrappers the actual UEFI application - entry point and calls this ShellAppMain function. - - @param ImageHandle The image handle of the UEFI Application. - @param SystemTable A pointer to the EFI System Table. - - @retval 0 The application exited normally. - @retval Other An error occurred. - -**/ -INTN -EFIAPI -ShellAppMain ( - IN INTN Argc, - IN CHAR16 **Argv - ); +/** @file + Provides application point extension for "C" style main funciton + +Copyright (c) 2006 - 2009, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +/** + UEFI application entry point which has an interface similar to a + standard C main function. + + The ShellCEntryLib library instance wrappers the actual UEFI application + entry point and calls this ShellAppMain function. + + @param ImageHandle The image handle of the UEFI Application. + @param SystemTable A pointer to the EFI System Table. + + @retval 0 The application exited normally. + @retval Other An error occurred. + +**/ +INTN +EFIAPI +ShellAppMain ( + IN UINTN Argc, + IN CHAR16 **Argv + ); diff --git a/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c b/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c index 80f56c0014..cde3d8cbc3 100644 --- a/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c +++ b/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c @@ -21,13 +21,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include -INTN -EFIAPI -ShellAppMain ( - IN INTN Argc, - IN CHAR16 **Argv - ); - /** UEFI entry point for an application that will in turn call the ShellAppMain function which has parameters similar to a standard C -- 2.39.2