Windows: remove trailing whitespace
[openafs.git] / src / WINNT / afssvrcfg / get_cur_config.cpp
index 6453a28..e6730b6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -96,7 +96,7 @@ int GetCurrentConfig(HWND hParent, BOOL& bCanceled)
 static BOOL CALLBACK GetCurConfigDlgProc(HWND hwndDlg, UINT msg, WPARAM wp, LPARAM lp)
 {
     BOOL bOn = FALSE;
-       
+
     switch (msg) {
     case WM_INITDIALOG:
        bCancel = FALSE;
@@ -152,12 +152,12 @@ static BOOL IsClientConfigured(BOOL& bConfigured, afs_status_t& nStatus)
     }
 
     return TRUE;
-}      
+}
 
 /*
  *     NOTE:   This function has an important side effect.  If this machine
  *                     is not the first in a new cell, then this function will get the
- *                     cell name from the config info.  The cell name may be needed in 
+ *                     cell name from the config info.  The cell name may be needed in
  *                     config calls that come later, and so this function must be called
  *                     before they are.
  */
@@ -165,7 +165,7 @@ static int IsConfigInfoValid(BOOL& bValid, afs_status_t& nStatus)
 {
     if (bCancel)
        return FALSE;
-       
+
     afs_status_t configStatus;
     char *pszCellName = 0;
 
@@ -206,7 +206,7 @@ static int StartBosServer(afs_status_t& nStatus)
     }
 
     return nResult;
-}              
+}
 
 static BOOL AreWeLastDBServer(BOOL& bLast, afs_status_t& nStatus)
 {
@@ -222,7 +222,7 @@ static BOOL AreWeLastDBServer(BOOL& bLast, afs_status_t& nStatus)
     g_LogFile.Write("Getting CellServDB from host %s.\r\n", GetHostnameA());
     int nResult = cfg_CellServDbEnumerate(GetHostnameA(), &pszCellname, &pszCellServDB, &nStatus);
     if (!nResult)
-       return FALSE;   
+       return FALSE;
 
     if (!pszCellServDB) {
        g_LogFile.Write("There are no DB servers in CellServDB!!!!!");
@@ -249,7 +249,7 @@ static BOOL AreWeLastDBServer(BOOL& bLast, afs_status_t& nStatus)
 static afs_status_t IsFSConfigured(BOOL& bConfigured)
 {
     g_LogFile.Write("Is this machine a file server: ");
-       
+
     bConfigured = FALSE;
 
     short isStarted;
@@ -259,12 +259,12 @@ static afs_status_t IsFSConfigured(BOOL& bConfigured)
     if (!nResult)
        return nStatus;
 
-    bConfigured = isStarted;   
-       
+    bConfigured = isStarted;
+
     g_LogFile.WriteBoolResult(bConfigured);
 
     return 0;
-}      
+}
 
 static afs_status_t IsDBConfigured(BOOL& bConfigured)
 {
@@ -286,12 +286,12 @@ static afs_status_t IsDBConfigured(BOOL& bConfigured)
     g_LogFile.Write(", %s.\r\n", bBakConfigured ? "Yes Bak" : "No Bak");
 
     return 0;
-}      
+}
 
 static afs_status_t IsBakConfigured(BOOL& bConfigured)
 {
     bConfigured = bBakConfigured;
-       
+
     return 0;
 }
 
@@ -320,7 +320,7 @@ static afs_status_t DoesAPartitionExist(BOOL& bExists)
     g_LogFile.WriteBoolResult(bExists);
 
     return 0;
-}      
+}
 
 afs_status_t DoRootVolumesExist(BOOL& bExists)
 {
@@ -383,12 +383,12 @@ afs_status_t AreRootVolumesReplicated(BOOL& bReplicated)
     g_LogFile.WriteBoolResult(bReplicated);
 
     return 0;
-}      
+}
 
 static afs_status_t IsSCSConfigured(BOOL& bConfigured)
 {
     g_LogFile.Write("Is this machine a System Control Server: ");
-       
+
     bConfigured = FALSE;
 
     short isUpserver, isSC, isBin;
@@ -408,7 +408,7 @@ static afs_status_t IsSCSConfigured(BOOL& bConfigured)
 static afs_status_t IsSCCConfigured(BOOL& bConfigured)
 {
     g_LogFile.Write("Is this machine a System Control Client: ");
-       
+
     bConfigured = FALSE;
 
     short isUpclient, isSCC, isBin;
@@ -430,7 +430,7 @@ static void ShowMsg(UINT uiMsgID)
     TCHAR szMsg[cchRESOURCE];
 
     GetString(szMsg, uiMsgID);
-       
+
     pProg->SetOperation(szMsg);
 }
 
@@ -440,7 +440,7 @@ static void NextStep(UINT uiMsgID)
 
     if (bCancel)
        return;
-       
+
     ShowMsg(uiMsgID);
 
     pProg->SetProgress(nCurStep++);
@@ -467,7 +467,7 @@ static BOOL CheckConfigState(afs_status_t (*ConfigCheckFunc)(BOOL&), CONFIG_STAT
 
     return TRUE;
 }
-               
+
 static DWORD CALLBACK GetCurrentConfigState(LPPROGRESSDISPLAY ppd, LPARAM lp)
 {
     afs_status_t nStatus = 0;
@@ -482,11 +482,11 @@ static DWORD CALLBACK GetCurrentConfigState(LPPROGRESSDISPLAY ppd, LPARAM lp)
     if (!IsConfigInfoValid(g_CfgData.bValidServerInfo, nStatus))
        return nStatus;
 
-    // If the server and client have good config info, and the client is in a 
+    // If the server and client have good config info, and the client is in a
     // different cell than the server, then the config routines will want to
     // reconfigure the client.  To do so they need information that we already
     // know and don't have to ask the user for.  Prefill this information here.
-    if (g_CfgData.bValidClientInfo && g_CfgData.bValidServerInfo && 
+    if (g_CfgData.bValidClientInfo && g_CfgData.bValidServerInfo &&
         (lstrcmp(g_CfgData.szCellName, g_CfgData.szClientCellName) != 0))
     {
         lstrcpy(g_CfgData.szCellServDbHostname, g_CfgData.szHostname);
@@ -525,7 +525,7 @@ static DWORD CALLBACK GetCurrentConfigState(LPPROGRESSDISPLAY ppd, LPARAM lp)
 
        if (!CheckConfigState(AreRootVolumesReplicated, g_CfgData.configRep, nStatus, IDS_CHECK_REP))
             return nStatus;
-        
+
         g_CfgData.bRootVolumesReplicationKnown = TRUE;
 
        if (!CheckConfigState(IsSCSConfigured, g_CfgData.configSCS, nStatus, IDS_CHECK_SCS))
@@ -533,11 +533,11 @@ static DWORD CALLBACK GetCurrentConfigState(LPPROGRESSDISPLAY ppd, LPARAM lp)
 
        if (!CheckConfigState(IsSCCConfigured, g_CfgData.configSCC, nStatus, IDS_CHECK_SCC))
            return nStatus;
-    }          
+    }
 
     if (!bCancel)
        pProg->SetProgress(MAX_STEPS);
-       
+
     return 0;
 }