[Box Backup-dev] COMMIT r450 - box/chris/win32/vc2005-compile-fixes/bin/bbackupd
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sun, 12 Feb 2006 16:04:58 +0000 (GMT)
Author: chris
Date: 2006-02-12 16:04:57 +0000 (Sun, 12 Feb 2006)
New Revision: 450
Modified:
box/chris/win32/vc2005-compile-fixes/bin/bbackupd/BackupDaemon.cpp
Log:
* BackupDaemon.cpp
- Undid changes to formatting of if() statements
Modified: box/chris/win32/vc2005-compile-fixes/bin/bbackupd/BackupDaemon.cpp
===================================================================
--- box/chris/win32/vc2005-compile-fixes/bin/bbackupd/BackupDaemon.cpp 2006-02-12 16:04:10 UTC (rev 449)
+++ box/chris/win32/vc2005-compile-fixes/bin/bbackupd/BackupDaemon.cpp 2006-02-12 16:04:57 UTC (rev 450)
@@ -94,9 +94,8 @@
// Created: 18/2/04
//
// --------------------------------------------------------------------------
-unsigned int WINAPI HelperThread( LPVOID lpParam )
+unsigned int WINAPI HelperThread(LPVOID lpParam)
{
- // printf( "Parameter = %lu.\n", *(DWORD*)lpParam );
((BackupDaemon *)lpParam)->RunHelperThread();
return 0;
@@ -307,7 +306,7 @@
bool disconnect = false;
// Command to process!
- if (command == "quit" || command == "")
+ if(command == "quit" || command == "")
{
// Close the socket.
disconnect = true;
@@ -320,20 +319,20 @@
this->mSyncIsForcedOut = false;
sendOK = true;
}
- else if (command == "force-sync")
+ else if(command == "force-sync")
{
// Sync now (forced -- overrides any SyncAllowScript)
this->mDoSyncFlagOut = true;
this->mSyncIsForcedOut = true;
sendOK = true;
}
- else if (command == "reload")
+ else if(command == "reload")
{
// Reload the configuration
SetReloadConfigWanted();
sendOK = true;
}
- else if (command == "terminate")
+ else if(command == "terminate")
{
// Terminate the daemon cleanly
SetTerminateWanted();
@@ -389,7 +388,7 @@
{
Run2();
}
- catch (...)
+ catch(...)
{
FiniTimer();
throw;