[Box Backup-dev] COMMIT r443 - box/chris/win32/vc2005-compile-fixes/lib/win32
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sun Feb 12 14:40:32 GMT 2006
Author: chris
Date: 2006-02-12 14:40:28 +0000 (Sun, 12 Feb 2006)
New Revision: 443
Modified:
box/chris/win32/vc2005-compile-fixes/lib/win32/WinNamedPipeStream.cpp
box/chris/win32/vc2005-compile-fixes/lib/win32/emu.cpp
Log:
* win32/emu.cpp, win32/WinNamedPipeStream.cpp
- Changed TRUE/FALSE to true/false as requested by Ben
Modified: box/chris/win32/vc2005-compile-fixes/lib/win32/WinNamedPipeStream.cpp
===================================================================
--- box/chris/win32/vc2005-compile-fixes/lib/win32/WinNamedPipeStream.cpp 2006-02-12 13:46:24 UTC (rev 442)
+++ box/chris/win32/vc2005-compile-fixes/lib/win32/WinNamedPipeStream.cpp 2006-02-12 14:40:28 UTC (rev 443)
@@ -104,10 +104,10 @@
THROW_EXCEPTION(ServerException, SocketOpenError)
}
- mReadClosed = FALSE;
- mWriteClosed = FALSE;
- mIsServer = TRUE; // must flush and disconnect before closing
- mIsConnected = TRUE;
+ mReadClosed = false;
+ mWriteClosed = false;
+ mIsServer = true; // must flush and disconnect before closing
+ mIsConnected = true;
}
// --------------------------------------------------------------------------
@@ -142,10 +142,10 @@
THROW_EXCEPTION(ServerException, SocketOpenError)
}
- mReadClosed = FALSE;
- mWriteClosed = FALSE;
- mIsServer = FALSE; // just close the socket
- mIsConnected = TRUE;
+ mReadClosed = false;
+ mWriteClosed = false;
+ mIsServer = false; // just close the socket
+ mIsConnected = true;
}
// --------------------------------------------------------------------------
@@ -183,7 +183,7 @@
// Closed for reading at EOF?
if (NumBytesRead == 0)
{
- mReadClosed = TRUE;
+ mReadClosed = true;
}
return NumBytesRead;
@@ -223,7 +223,7 @@
if (!Success)
{
- mWriteClosed = TRUE; // assume can't write again
+ mWriteClosed = true; // assume can't write again
THROW_EXCEPTION(ConnectionException,
Conn_SocketWriteError)
}
@@ -246,7 +246,7 @@
{
fprintf(stderr, "Inconsistent connected state\n");
::syslog(LOG_ERR, "Inconsistent connected state");
- mIsConnected = FALSE;
+ mIsConnected = false;
}
if (mSocketHandle == NULL)
@@ -274,7 +274,7 @@
bool result = CloseHandle(mSocketHandle);
mSocketHandle = NULL;
- mIsConnected = FALSE;
+ mIsConnected = false;
if (!result)
{
Modified: box/chris/win32/vc2005-compile-fixes/lib/win32/emu.cpp
===================================================================
--- box/chris/win32/vc2005-compile-fixes/lib/win32/emu.cpp 2006-02-12 13:46:24 UTC (rev 442)
+++ box/chris/win32/vc2005-compile-fixes/lib/win32/emu.cpp 2006-02-12 14:40:28 UTC (rev 443)
@@ -983,7 +983,7 @@
}
HANDLE gSyslogH = 0;
-static bool sHaveWarnedEventLogFull = FALSE;
+static bool sHaveWarnedEventLogFull = false;
void syslog(int loglevel, const char *frmt, ...)
{
@@ -1061,7 +1061,7 @@
}
else
{
- sHaveWarnedEventLogFull = FALSE;
+ sHaveWarnedEventLogFull = false;
}
printf("%s\r\n", buffer);
More information about the Boxbackup-dev
mailing list