Commit 2b2bd7d6 authored by Stefan Weil's avatar Stefan Weil
Browse files

OCSInventory Front: Fix typos in comments and strings



Most of them were found and fixed by codespell.

Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
parent 444f29b3
......@@ -180,7 +180,7 @@ BOOL CConfig::load( LPCTSTR lpstrFile)
m_csLocal.ReleaseBuffer();
// Scan for installed software or not
m_bNoSoftware = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "NoSoftware"), FALSE, m_csConfigFile);
// Scanning HKEY_CURRENT_USER hive for printers and sofware
// Scanning HKEY_CURRENT_USER hive for printers and software
m_bHKCU = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "HKCU"), FALSE, m_csConfigFile);
// Disable prompting user for TAG value
m_bNoTag = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "NoTAG"), FALSE, m_csConfigFile);
......
......@@ -107,7 +107,7 @@ public: // Methods
// What's the content of TAG (/TAG:"tag value")
BOOL isTagTextProvided();
LPCTSTR getTagText();
// Does agent also scan HKEY_CURRENT_USER hive for printers and sofware (/HKCU)
// Does agent also scan HKEY_CURRENT_USER hive for printers and software (/HKCU)
BOOL isHkcuRequired();
// Is Inventory forced (/FORCE)
BOOL isForceInventoryRequired();
......@@ -141,7 +141,7 @@ public: // Methods
void setIpDiscoverLatency(LPCTSTR lpstrLatency = NULL);
// Does agent launches a fast IpDiscover scan, without taking care of network load, or not
void setFastIpRequired( BOOL bFast = TRUE);
// Set if agent also scan HKEY_CURRENT_USER hive for printers and sofware (/HKCU)
// Set if agent also scan HKEY_CURRENT_USER hive for printers and software (/HKCU)
void setHkcuRequired( BOOL bHKCU = TRUE);
// Set Communication Provider DLL to use without extension .DLL
void setCommunicationProvider( LPCTSTR lpstrDll);
......
......@@ -145,7 +145,7 @@ BOOL CDeviceid::writeDeviceid()
delete pCb;
return FALSE;
}
// All sucessfull
// All successful
delete pCb;
return TRUE;
}
......
......@@ -51,7 +51,7 @@ public:
* We don't care about command ending, so stdout and stderr
* will not be grabbed, and we will not try to get process
* exit code
* Return EXEC_SUCCESSFULL if all successfull
* Return EXEC_SUCCESSFULL if all successful
* EXEC_ERROR_START_COMMAND if start command error
*/
int execNoWait(LPCTSTR lpstrCommand, LPCTSTR lpstrPath);
......@@ -59,12 +59,12 @@ public:
/**
* Exec command in the directory path. Make sure that the
* executable is either in the path or specify the full path.
* We will try to get process exit code (use getExitCode() to retreive it).
* We will try to get process exit code (use getExitCode() to retrieve it).
* If bCapture is TRUE, stdout and stderr will be grabbed (use getOutput()
* to retreive it)
* to retrieve it)
* We will wait until command end (but if command starts other
* processes/threads, we will not be able to wait for those ending)
* Return EXEC_SUCCESSFULL if all successfull
* Return EXEC_SUCCESSFULL if all successful
* EXEC_ERROR_START_COMMAND if start command error
* EXEC_ERROR_WAIT_COMMAND if wait or get exit code/ouput error,
*/
......@@ -75,7 +75,7 @@ public:
* executable is either in the path or specify the full path.
* Wait for command AND ALL others threads/processes it may launch to finish.
* In this case, we try get exit code, but NOT stdout and stderr
* Return EXEC_SUCCESSFULL if all successfull
* Return EXEC_SUCCESSFULL if all successful
* EXEC_ERROR_START_COMMAND if start command error
* EXEC_ERROR_WAIT_COMMAND if wait error,
*/
......
......@@ -156,7 +156,7 @@ BOOL CInventoryRequest::final()
m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Port(s)"), m_PortList.GetCount());
// Update System Controllers
bSuccess = bSuccess && m_pTheDB->UpdateSystemControllers( m_SystemControllerList);
m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Controler(s)"), m_SystemControllerList.GetCount());
m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Controller(s)"), m_SystemControllerList.GetCount());
// Update System Slots
bSuccess = bSuccess && m_pTheDB->UpdateSystemSlots( m_SlotList);
m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Slot(s)"), m_SlotList.GetCount());
......@@ -710,7 +710,7 @@ BOOL CInventoryRequest::runInventory()
if (!m_pSysInfo->getSystemControllers( &m_SystemControllerList))
m_pLogger->log( LOG_PRIORITY_WARNING, _T( "INVENTORY => Failed to retrieve system controlers"));
else
m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => %d system controler(s) found"),
m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => %d system controller(s) found"),
m_SystemControllerList.GetCount());
// Get Physical storage devices
if (!m_pSysInfo->getStoragePeripherals( &m_StorageList))
......
......@@ -24,7 +24,7 @@
/* OCS Inventory NG log modes
/DEBUG=0 => default mode
/DEBUG=1 => DEBUG mode, for more detailled logs
/DEBUG=1 => DEBUG mode, for more detailed logs
/DEBUG=2 => TRACE mode, for full logs, including XML and SysInfo logs
*/
......@@ -71,7 +71,7 @@ private: // Methods
// Trace log for full mode debug
void log_trace( LPCTSTR lpstrFormat, va_list args);
private: // Atributes
private: // Attributes
// Log filename
CString m_csFileName;
// The log file opened
......
......@@ -169,7 +169,7 @@ BOOL CMarkup::SetData( LPCTSTR szValue)
{
// This a test child, remove it...
m_pCurrentNode->RemoveChild( pChild);
// ...and restart from the begining of childs
// ...and restart from the beginning of children
pChild = NULL;
}
}
......
......@@ -385,7 +385,7 @@ BOOL OCSINVENTORYFRONT_API fileDigest( LPCTSTR lpstrFile, CString &csDigest, LPC
UINT uLength;
OpenSSL_add_all_digests();
// Set the algorythm
// Set the algorithm
if (!(evpMD = EVP_get_digestbyname( GetAnsiFromUnicode( lpstrAlgo))))
// Unsupported digest
return FALSE;
......
......@@ -81,7 +81,7 @@ void CRequestAbstract::cleanXml()
csXml.Delete( nIndex, nCount - nIndex);
// and insert space
csXml.Insert( nIndex, " ");
// Find next occurence
// Find next occurrence
nIndex = csXml.Find( "&#x", nIndex);
}
m_cmXml.SetDoc( csXml);
......
......@@ -101,7 +101,7 @@ BOOL OCSINVENTORYFRONT_API suspendDownload();
BOOL OCSINVENTORYFRONT_API resumeDownload();
// If suspend file exists, download is suspended
BOOL OCSINVENTORYFRONT_API isDownloadSuspended();
// Get exclusive acces to download directory by locking lock file
// Get exclusive access to download directory by locking lock file
BOOL OCSINVENTORYFRONT_API lockDownload();
// Release exclusive access
BOOL OCSINVENTORYFRONT_API unlockDownload();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment