[CMDUTILS][FC] Follow-up of #3622 (8bf4711)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 25 Apr 2021 23:52:22 +0000 (08:52 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 25 Apr 2021 23:52:22 +0000 (08:52 +0900)
CORE-17500

base/applications/cmdutils/fc/fc.c

index 1697219..e9ec950 100644 (file)
 
 // See also: https://stackoverflow.com/questions/33125766/compare-files-with-a-cmd
 typedef enum FCRET { // return code of FC command
-    FCRET_INVALID = -1, FCRET_IDENTICAL = 0, FCRET_DIFFERENT = 1, FCRET_CANT_FIND = 2
+    FCRET_INVALID = -1,
+    FCRET_IDENTICAL = 0,
+    FCRET_DIFFERENT = 1,
+    FCRET_CANT_FIND = 2
 } FCRET;
 
 #ifdef _WIN64
@@ -38,7 +41,8 @@ typedef enum FCRET { // return code of FC command
 #define FLAG_nnnn (1 << 10)
 #define FLAG_HELP (1 << 11)
 
-typedef struct FILECOMPARE {
+typedef struct FILECOMPARE
+{
     DWORD dwFlags; // FLAG_...
     INT n, nnnn;
     LPCWSTR file1, file2;
@@ -414,7 +418,7 @@ static FCRET WildcardFileCompare(FILECOMPARE *pFC)
 int wmain(int argc, WCHAR **argv)
 {
     FILECOMPARE fc = { .dwFlags = 0, .n = 100, .nnnn = 2 };
-    wchar_t *endptr;
+    PWCHAR endptr;
     INT i;
 
     /* Initialize the Console Standard Streams */