diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-20 01:34:39 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-20 01:34:39 +0000 |
commit | f62f07ee2cf219786e52ef8be7c606749558d5dd (patch) | |
tree | 74aad1a304632c6632f1c50ddd7a407cbb94d532 /ShellPkg/Application | |
parent | 7ea5f0cc4e4e3487e19d7c3daa025372026be2a9 (diff) | |
download | edk2-f62f07ee2cf219786e52ef8be7c606749558d5dd.tar.gz edk2-f62f07ee2cf219786e52ef8be7c606749558d5dd.tar.bz2 edk2-f62f07ee2cf219786e52ef8be7c606749558d5dd.zip |
Refine code to follow coding style.
Signed-off-by: ydong10
Reviewed-by: jcarsey
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12383 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application')
-rw-r--r-- | ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c b/ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c index 476194532a..6bdd237e8d 100644 --- a/ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c +++ b/ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c @@ -30,7 +30,7 @@ **/
INTN
EFIAPI
-Test(CONST VOID*b1, CONST VOID*b2)
+Test(CONST VOID *b1, CONST VOID *b2)
{
if (*(INTN*)b1 == *(INTN*)b2) {
return (0);
@@ -62,7 +62,19 @@ ShellAppMain ( IN CHAR16 **Argv
)
{
- INTN Array[10] = {2,3,4,1,5,6,7,8,1,5};
+ INTN Array[10];
+
+ Array[0] = 2;
+ Array[1] = 3;
+ Array[2] = 4;
+ Array[3] = 1;
+ Array[4] = 5;
+ Array[5] = 6;
+ Array[6] = 7;
+ Array[7] = 8;
+ Array[8] = 1;
+ Array[9] = 5;
+
Print(L"Array = %d, %d, %d, %d, %d, %d, %d, %d, %d, %d\r\n", Array[0],Array[1],Array[2],Array[3],Array[4],Array[5],Array[6],Array[7],Array[8],Array[9]);
PerformQuickSort(Array, 10, sizeof(INTN), Test);
Print(L"POST-SORT\r\n");
|