]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.c
Refine code to follow coding style.
[mirror_edk2.git] / ShellPkg / Application / ShellSortTestApp / ShellSortTestApp.c
index 476194532a5983d96af3325cc245d2bea5fd2fc6..6bdd237e8dae02b6812c96e0abda2e203bc91393 100644 (file)
@@ -30,7 +30,7 @@
 **/\r
 INTN\r
 EFIAPI\r
-Test(CONST VOID*b1, CONST VOID*b2)\r
+Test(CONST VOID *b1, CONST VOID *b2)\r
 {\r
   if (*(INTN*)b1 == *(INTN*)b2) {\r
     return (0);\r
@@ -62,7 +62,19 @@ ShellAppMain (
   IN CHAR16 **Argv\r
   )\r
 {\r
-  INTN Array[10] = {2,3,4,1,5,6,7,8,1,5};\r
+  INTN Array[10];\r
+\r
+  Array[0] = 2;\r
+  Array[1] = 3;\r
+  Array[2] = 4;\r
+  Array[3] = 1;\r
+  Array[4] = 5;\r
+  Array[5] = 6;\r
+  Array[6] = 7;\r
+  Array[7] = 8;\r
+  Array[8] = 1;\r
+  Array[9] = 5;\r
+\r
   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]);\r
   PerformQuickSort(Array, 10, sizeof(INTN), Test);\r
   Print(L"POST-SORT\r\n");\r