OSDN Git Service

Fix a typo in a <sys/stat.h> inline function definition.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Wed, 18 May 2016 14:08:20 +0000 (15:08 +0100)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Wed, 18 May 2016 14:08:20 +0000 (15:08 +0100)
mingwrt/ChangeLog
mingwrt/include/sys/stat.h

index d9b3edb..3ed92d0 100644 (file)
@@ -1,3 +1,11 @@
+2016-05-18  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Fix a typo in a <sys/stat.h> inline function definition.
+
+       * include/sys/stat.h [__MSVCRT_VERSION__ >= __MSVCR80_DLL]
+       (stat): First argument declared as 'int'; should be 'const char *';
+       correct it.
+
 2016-05-12  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
        Resolve some strnlen() implementation issues.
index 94c9b7c..2a44d91 100644 (file)
@@ -288,7 +288,7 @@ __CRT_ALIAS __cdecl __MINGW_NOTHROW  int _stati64 (const char *__v1, struct _sta
 __CRT_ALIAS __cdecl __MINGW_NOTHROW  int fstat (int __v1, struct _stat *__v2)
   { return _fstat (__v1, __v2); }
 
-__CRT_ALIAS __cdecl __MINGW_NOTHROW  int stat (int __v1, struct _stat *__v2)
+__CRT_ALIAS __cdecl __MINGW_NOTHROW  int stat (const char *__v1, struct _stat *__v2)
   { return _stat (__v1, __v2); }
 
 #endif /* !_NO_OLDNAMES */