mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
Fix typos in comments, documentation and strings (#1615)
All of them were found using codespell. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
committed by
Aleksandar Fabijanic
parent
a9598960e4
commit
8ccee8928c
@@ -30,7 +30,7 @@
|
||||
// from a DLL simpler. All files within this DLL are compiled with the Net_EXPORTS
|
||||
// symbol defined on the command line. this symbol should not be defined on any project
|
||||
// that uses this DLL. This way any other project whose source files include this file see
|
||||
// Net_API functions as being imported from a DLL, wheras this DLL sees symbols
|
||||
// Net_API functions as being imported from a DLL, whereas this DLL sees symbols
|
||||
// defined with this macro as being exported.
|
||||
//
|
||||
#if defined(_WIN32) && defined(POCO_DLL)
|
||||
|
||||
@@ -188,7 +188,7 @@ void HTTPClient::printStats(std::string uri, int repetitions, int success, Poco:
|
||||
std::cout << std::endl << "--------------" << std::endl
|
||||
<< "Statistics for " << uri << std::endl << "--------------"
|
||||
<< std::endl
|
||||
<< repetitions << " attempts, " << success << " succesful ("
|
||||
<< repetitions << " attempts, " << success << " successful ("
|
||||
<< ((float) success / (float) repetitions) * 100.0 << "%)" << std::endl
|
||||
<< "Avg response time: " << ((float) usec / (float) repetitions) / 1000.0 << "ms, " << std::endl
|
||||
<< "Avg requests/second handled: " << ((float) success /((float) usec / 1000000.0)) << std::endl
|
||||
|
||||
@@ -330,7 +330,7 @@ void MessageHeader::decodeRFC2047(const std::string& ins, std::string& outs, con
|
||||
}
|
||||
else
|
||||
{
|
||||
// Not conversion necesary.
|
||||
// Not conversion necessary.
|
||||
outs = tempout;
|
||||
}
|
||||
}
|
||||
@@ -341,7 +341,7 @@ std::string MessageHeader::decodeWord(const std::string& text, const std::string
|
||||
std::string outs, tmp = text;
|
||||
do {
|
||||
std::string tmp2;
|
||||
// find the begining of the next rfc2047 chunk
|
||||
// find the beginning of the next rfc2047 chunk
|
||||
size_t pos = tmp.find("=?");
|
||||
if (pos == std::string::npos) {
|
||||
// No more found, return
|
||||
|
||||
@@ -1200,7 +1200,7 @@ NetworkInterface::Map NetworkInterface::map(bool ipOnly, bool upOnly)
|
||||
bool hasBroadcast = (pAddress->IfType == IF_TYPE_ETHERNET_CSMACD) || (pAddress->IfType == IF_TYPE_SOFTWARE_LOOPBACK) || (pAddress->IfType == IF_TYPE_IEEE80211);
|
||||
if (hasBroadcast)
|
||||
{
|
||||
// On Windows, a valid broadcast address will be all 1's (== address | ~subnetMask); additionaly, on pre-Vista versions of
|
||||
// On Windows, a valid broadcast address will be all 1's (== address | ~subnetMask); additionally, on pre-Vista versions of
|
||||
// OS, master address structure does not contain member for prefix length; we go an extra mile here in order to make sure
|
||||
// we reflect the actual values held by system and protect against misconfiguration (e.g. bad DHCP config entry)
|
||||
ULONG prefixLength = 0;
|
||||
|
||||
Reference in New Issue
Block a user