From f62f07ee2cf219786e52ef8be7c606749558d5dd Mon Sep 17 00:00:00 2001 From: ydong10 Date: Tue, 20 Sep 2011 01:34:39 +0000 Subject: [PATCH] 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 --- .../ShellSortTestApp/ShellSortTestApp.c | 16 ++++++++++++++-- 1 file 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"); -- 2.39.2