X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34138703c3997ce676a1e713d9ff9eb020640da7..520e470fdd0daef09c77938db642e4583933c90d:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index b32441ff97..6cb6e3f059 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -132,7 +132,7 @@ bool wxFile::Exists(const char *name) bool wxFile::Access(const char *name, OpenMode mode) { - int how; + int how = 0; switch ( mode ) { case read: @@ -252,11 +252,11 @@ off_t wxFile::Read(void *pBuf, off_t nCount) return wxInvalidOffset; } else - return (uint)iRc; + return (size_t)iRc; } // write -uint wxFile::Write(const void *pBuf, uint nCount) +size_t wxFile::Write(const void *pBuf, size_t nCount) { wxCHECK( (pBuf != NULL) && IsOpened(), 0 ); @@ -276,7 +276,7 @@ bool wxFile::Flush() if ( IsOpened() ) { // @@@ fsync() is not ANSI (BSDish) // if ( fsync(m_fd) == -1 ) { // TODO - if (TRUE) { + if (wxTrue) { wxLogSysError(_("can't flush file descriptor %d"), m_fd); return FALSE; }