diff options
Diffstat (limited to 'rcc/lib/Support/Errno.cc')
| -rw-r--r-- | rcc/lib/Support/Errno.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rcc/lib/Support/Errno.cc b/rcc/lib/Support/Errno.cc index 5a99571..f0161a6 100644 --- a/rcc/lib/Support/Errno.cc +++ b/rcc/lib/Support/Errno.cc @@ -48,8 +48,8 @@ StrError (int errnum) } #if defined(HAVE_STRERROR_R) || HAVE_DECL_STRERROR_S - const int MaxErrStrLen = 2000; - char buffer[MaxErrStrLen]; + const int maxErrStrLen = 2000; + char buffer[maxErrStrLen]; buffer[0] = '\0'; #endif @@ -58,14 +58,14 @@ StrError (int errnum) #if defined(__GLIBC__) && defined(_GNU_SOURCE) // glibc defines its own incompatible version of strerror_r which may not // use the buffer supplied. - str = strerror_r (errnum, buffer, MaxErrStrLen - 1); + str = strerror_r (errnum, buffer, maxErrStrLen - 1); #else - strerror_r (errnum, buffer, MaxErrStrLen - 1); + strerror_r (errnum, buffer, maxErrStrLen - 1); str = buffer; #endif #elif HAVE_DECL_STRERROR_S // Windows Secure API. - strerror_s (buffer, MaxErrStrLen - 1, errnum); + strerror_s (buffer, maxErrStrLen - 1, errnum); str = buffer; #else // Copy the thread-unsafe result of strerror into the buffer as fast as |
