summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c')
-rw-r--r--ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c16
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");