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