bool wxFile::Access(const char *name, OpenMode mode)
{
- int how;
+ int how = 0;
switch ( mode ) {
case read:
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 );
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;
}