diff options
| author | klemens <ka7@github.com> | 2017-03-20 22:44:41 +0100 |
|---|---|---|
| committer | klemens <ka7@github.com> | 2017-03-20 22:44:41 +0100 |
| commit | ec2ce4ffe5ca6af1a509dcd5a4d8bf0d5644401d (patch) | |
| tree | f12046ea41550f0975721b6541095c5ceae21af4 /src | |
| parent | f0adbde2e6bd46eef13367dc564524c70c0c3916 (diff) | |
spelling fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/FeatureConfig.cc | 2 | ||||
| -rw-r--r-- | src/GZipDecodingStreamFilter.cc | 2 | ||||
| -rw-r--r-- | src/HttpConnection.h | 2 | ||||
| -rw-r--r-- | src/InitiateConnectionCommand.h | 2 | ||||
| -rw-r--r-- | src/PieceStorage.h | 2 | ||||
| -rw-r--r-- | src/SSHSession.h | 2 | ||||
| -rw-r--r-- | src/SegmentMan.h | 2 | ||||
| -rw-r--r-- | src/SocketCore.h | 4 | ||||
| -rw-r--r-- | src/TimeBasedCommand.h | 8 | ||||
| -rw-r--r-- | src/UnknownLengthPieceStorage.h | 2 | ||||
| -rw-r--r-- | src/crypto_endian.h | 2 |
11 files changed, 15 insertions, 15 deletions
diff --git a/src/FeatureConfig.cc b/src/FeatureConfig.cc index 3cebd846..029d4809 100644 --- a/src/FeatureConfig.cc +++ b/src/FeatureConfig.cc @@ -293,7 +293,7 @@ std::string usedCompilerAndPlatform() rv << "\n built by " << BUILD; if (strcmp(BUILD, TARGET)) { - rv << "\n targetting " << TARGET; + rv << "\n targeting " << TARGET; } rv << "\n on " << __DATE__ << " " << __TIME__; diff --git a/src/GZipDecodingStreamFilter.cc b/src/GZipDecodingStreamFilter.cc index 2895403e..d24acc3e 100644 --- a/src/GZipDecodingStreamFilter.cc +++ b/src/GZipDecodingStreamFilter.cc @@ -65,7 +65,7 @@ void GZipDecodingStreamFilter::init() strm_->avail_in = 0; strm_->next_in = Z_NULL; - // initalize z_stream with gzip/zlib format auto detection enabled. + // initialize z_stream with gzip/zlib format auto detection enabled. if (Z_OK != inflateInit2(strm_, 47)) { throw DL_ABORT_EX("Initializing z_stream failed."); } diff --git a/src/HttpConnection.h b/src/HttpConnection.h index 54da32d1..fe254866 100644 --- a/src/HttpConnection.h +++ b/src/HttpConnection.h @@ -101,7 +101,7 @@ public: * If segment.sp+segment.ds > 0 then Range header is added. * This method is used in HTTP/HTTP downloading and FTP downloading via * HTTP proxy(GET method). - * @param segment indicates starting postion of the file for downloading + * @param segment indicates starting position of the file for downloading */ void sendRequest(std::unique_ptr<HttpRequest> httpRequest); diff --git a/src/InitiateConnectionCommand.h b/src/InitiateConnectionCommand.h index e40bd1f3..12bf5d12 100644 --- a/src/InitiateConnectionCommand.h +++ b/src/InitiateConnectionCommand.h @@ -47,7 +47,7 @@ protected: /** * Connect to the server. * This method just send connection request to the server. - * Using nonblocking mode of socket, this funtion returns immediately + * Using nonblocking mode of socket, this function returns immediately * after send connection packet to the server. */ virtual bool executeInternal() CXX11_OVERRIDE; diff --git a/src/PieceStorage.h b/src/PieceStorage.h index 981c8547..c6ea6750 100644 --- a/src/PieceStorage.h +++ b/src/PieceStorage.h @@ -157,7 +157,7 @@ public: virtual void markPieceMissing(size_t index) = 0; /** - * Tells that the download of the specfied piece completes. + * Tells that the download of the specified piece completes. */ virtual void completePiece(const std::shared_ptr<Piece>& piece) = 0; diff --git a/src/SSHSession.h b/src/SSHSession.h index fc1e9d1a..4034add7 100644 --- a/src/SSHSession.h +++ b/src/SSHSession.h @@ -123,7 +123,7 @@ public: // blocks, or SSH_ERR_ERROR. int sftpStat(int64_t& totalLength, time_t& mtime); - // Moves file postion to |pos|. + // Moves file position to |pos|. void sftpSeek(int64_t pos); // Returns last error string diff --git a/src/SegmentMan.h b/src/SegmentMan.h index 2d1edadc..dfb586ea 100644 --- a/src/SegmentMan.h +++ b/src/SegmentMan.h @@ -117,7 +117,7 @@ public: int64_t getTotalLength() const; /** - * Returs true when the download has finished. + * Returns true when the download has finished. * If downloadStarted is false or the number of the segments of this object * holds is 0, then returns false. */ diff --git a/src/SocketCore.h b/src/SocketCore.h index 7fdcf6e3..60f33279 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -154,8 +154,8 @@ public: /** * Creates a socket and bind it with locahost's address and port. * flags is set to struct addrinfo's ai_flags. - * @param port port to listen. If 0 is specified, os automaticaly - * choose avaiable port. + * @param port port to listen. If 0 is specified, os automatically + * choose available port. */ void bind(uint16_t port, int flags = AI_PASSIVE); diff --git a/src/TimeBasedCommand.h b/src/TimeBasedCommand.h index d8d17b34..69390914 100644 --- a/src/TimeBasedCommand.h +++ b/src/TimeBasedCommand.h @@ -54,7 +54,7 @@ private: * setting exit_ to true if this command's job has finished and you want to * delete this command. * The exit_ variable is evaluated after preProcess(), process(), - * postProcess(), and terminate processing immediately and excute() returns + * postProcess(), and terminate processing immediately and execute() returns * true. */ bool exit_; @@ -70,18 +70,18 @@ protected: public: /** - * preProcess() is called each time when excute() is called. + * preProcess() is called each time when execute() is called. */ virtual void preProcess(){}; /** - * process() is called only when excute() is called and specified time has + * process() is called only when execute() is called and specified time has * elapsed. */ virtual void process() = 0; /** - * postProcess() is called each time when excute() is called. + * postProcess() is called each time when execute() is called. */ virtual void postProcess(){}; diff --git a/src/UnknownLengthPieceStorage.h b/src/UnknownLengthPieceStorage.h index a8384cee..9c3845dd 100644 --- a/src/UnknownLengthPieceStorage.h +++ b/src/UnknownLengthPieceStorage.h @@ -136,7 +136,7 @@ public: virtual std::shared_ptr<Piece> getPiece(size_t index) CXX11_OVERRIDE; /** - * Tells that the download of the specfied piece completes. + * Tells that the download of the specified piece completes. */ virtual void completePiece(const std::shared_ptr<Piece>& piece) CXX11_OVERRIDE; diff --git a/src/crypto_endian.h b/src/crypto_endian.h index b282fb15..9f05451a 100644 --- a/src/crypto_endian.h +++ b/src/crypto_endian.h @@ -40,7 +40,7 @@ namespace crypto { #if !defined(LITTLE_ENDIAN) || !defined(BIG_ENDIAN) || !defined(BYTE_ORDER) || \ (LITTLE_ENDIAN != BYTE_ORDER && BIG_ENDIAN != BYTE_ORDER) -#error Unsupported byte order/endianess +#error Unsupported byte order/endianness #endif // Lets spend some quality time mucking around with byte swap and endian-ness. |
