diff --git a/docs/Web-Interface.md b/docs/Web-Interface.md index f03027300..0737b551b 100644 --- a/docs/Web-Interface.md +++ b/docs/Web-Interface.md @@ -10,7 +10,7 @@ Click "Preferences". Then go to tab "Remote" ![image](resources/QT-Enable-Web-Win-2.png) -Click on "Allow remote access" checkbox. If password protection is required, click on "Use authentication" checkbox, set username and password. If "Only allow these IP adresses" is checked, Transmission will only allow the specified list of addresses to access the web interface. +Click on "Allow remote access" checkbox. If password protection is required, click on "Use authentication" checkbox, set username and password. If "Only allow these IP addresses" is checked, Transmission will only allow the specified list of addresses to access the web interface. ![image](resources/QT-Enable-Web-Win-3.png) @@ -26,7 +26,7 @@ Then go to tab "Remote" ![Screenshot_2022-07-20_23-49-18](resources/QT-Enable-Web-Lnx-2.png) -Click on "Allow remote access" checkbox. If password protection is required, click on "Use authentication" checkbox, set username and password. If "Only allow these IP adresses" is checked, Transmission will only allow the specified list of addresses to access the web interface. +Click on "Allow remote access" checkbox. If password protection is required, click on "Use authentication" checkbox, set username and password. If "Only allow these IP addresses" is checked, Transmission will only allow the specified list of addresses to access the web interface. ![image](resources/QT-Enable-Web-Lnx-3.png) diff --git a/extras/encryption.txt b/extras/encryption.txt index 00953c5be..4bd22de75 100644 --- a/extras/encryption.txt +++ b/extras/encryption.txt @@ -131,7 +131,7 @@ HASH() is SHA1 binary output (20 bytes) ###### The handshake "packet" format -The handshake is seperated into 5 blocking steps. +The handshake is separated into 5 blocking steps. 1 A->B: Diffie Hellman Ya, PadA 2 B->A: Diffie Hellman Yb, PadB diff --git a/libtransmission/announcer-http.cc b/libtransmission/announcer-http.cc index ef136e041..624f0df59 100644 --- a/libtransmission/announcer-http.cc +++ b/libtransmission/announcer-http.cc @@ -367,7 +367,7 @@ static void onAnnounceDone(tr_web::FetchResponse const& web_response) { auto const* response_used = &response; - // All requests have been answered, but none were successfull. + // All requests have been answered, but none were successful. // Choose the one that went further to report. if (data->previous_response && !response.did_connect && !response.did_timeout) { diff --git a/libtransmission/bandwidth.h b/libtransmission/bandwidth.h index 9ece06760..2b6525f7f 100644 --- a/libtransmission/bandwidth.h +++ b/libtransmission/bandwidth.h @@ -56,7 +56,7 @@ struct tr_bandwidth_limits * * When you ask a bandwidth object for its speed, it gives the speed of the * subtree underneath it as well. So you can get Transmission's overall - * speed by quering tr_session's bandwidth, per-torrent speeds by asking + * speed by querying tr_session's bandwidth, per-torrent speeds by asking * tr_torrent's bandwidth, and per-peer speeds by asking tr_peer's bandwidth. * * CONSTRAINING diff --git a/libtransmission/bitfield.cc b/libtransmission/bitfield.cc index 34420610d..5c0050c98 100644 --- a/libtransmission/bitfield.cc +++ b/libtransmission/bitfield.cc @@ -29,7 +29,7 @@ namespace return (bit_count >> 3) + ((bit_count & 7) != 0 ? 1 : 0); } -/* Used only in cases where it can be guranteed bit_count <= SIZE_MAX - 8 */ +/* Used only in cases where it can be guaranteed bit_count <= SIZE_MAX - 8 */ [[nodiscard]] constexpr size_t getBytesNeededSafe(size_t bit_count) noexcept { return ((bit_count + 7) >> 3); diff --git a/libtransmission/clients.cc b/libtransmission/clients.cc index fc9636d60..ed458f5ce 100644 --- a/libtransmission/clients.cc +++ b/libtransmission/clients.cc @@ -493,7 +493,7 @@ constexpr void opera_formatter(char* buf, size_t buflen, std::string_view name, // Opera 8 previews and Opera 9.x releases use the following peer_id // scheme: The first two characters are OP and the next four digits equal // the build number. All following characters are random lowercase - // hexdecimal digits. + // hexadecimal digits. buf_append(buf, buflen, name, ' ', std::string_view(&id[2], 4)); } diff --git a/libtransmission/error.h b/libtransmission/error.h index 1de7a5e3a..fd605aa8a 100644 --- a/libtransmission/error.h +++ b/libtransmission/error.h @@ -64,7 +64,7 @@ void tr_error_propagate(tr_error** new_error, tr_error** old_error); void tr_error_clear(tr_error** error); /** - * @brief Prefix message of exising error object. + * @brief Prefix message of existing error object. * * If passed pointer to error object is not `nullptr`, prefix its message with * `printf`-style formatted text. Otherwise, do nothing. diff --git a/libtransmission/jsonsl.h b/libtransmission/jsonsl.h index 6de97de3b..43170743a 100644 --- a/libtransmission/jsonsl.h +++ b/libtransmission/jsonsl.h @@ -392,7 +392,7 @@ struct jsonsl_state_st { /* * So now we need some special structure for keeping the - * JPR info in sync. Preferrably all in a single block + * JPR info in sync. Preferably all in a single block * of memory (there's no need for separate allocations. * So we will define a 'table' with the following layout * diff --git a/libtransmission/magnet-metainfo.cc b/libtransmission/magnet-metainfo.cc index 1cb8b2fae..0a025cb96 100644 --- a/libtransmission/magnet-metainfo.cc +++ b/libtransmission/magnet-metainfo.cc @@ -135,7 +135,7 @@ std::optional parseHash(std::string_view sv) { // http://bittorrent.org/beps/bep_0009.html // Is the info-hash hex encoded, for a total of 40 characters. - // For compatability with existing links in the wild, clients + // For compatibility with existing links in the wild, clients // should also support the 32 character base32 encoded info-hash. if (auto const hash = tr_sha1_from_string(sv); hash) diff --git a/libtransmission/timer-ev.cc b/libtransmission/timer-ev.cc index e873de5b9..c114b224c 100644 --- a/libtransmission/timer-ev.cc +++ b/libtransmission/timer-ev.cc @@ -59,7 +59,7 @@ public: void setInterval(std::chrono::milliseconds interval) override { - TR_ASSERT_MSG(interval.count() > 0 || !is_repeating_, "repeating timers must have a postiive interval"); + TR_ASSERT_MSG(interval.count() > 0 || !is_repeating_, "repeating timers must have a positive interval"); interval_ = interval; diff --git a/libtransmission/tr-assert.mm b/libtransmission/tr-assert.mm index 338a1503a..3d768a4ef 100644 --- a/libtransmission/tr-assert.mm +++ b/libtransmission/tr-assert.mm @@ -21,7 +21,7 @@ auto const full_text = fmt::format(FMT_STRING("assertion failed: {:s} ({:s}:{:d})"), message, file, line); [NSException raise:NSInternalInconsistencyException format:@"%s", full_text.c_str()]; - // We should not reach this anyway, but it helps mark the function as propertly noreturn + // We should not reach this anyway, but it helps mark the function as property noreturn // (the Objective-C NSException method does not). abort(); } diff --git a/libtransmission/tr-popcount.h b/libtransmission/tr-popcount.h index b8de20d34..3e365bb7b 100644 --- a/libtransmission/tr-popcount.h +++ b/libtransmission/tr-popcount.h @@ -72,7 +72,7 @@ struct tr_popcnt /* Make sure we know how to find that right __builtin_popcount. */ static_assert( sizeof(T) == sizeof(long long) || sizeof(T) == sizeof(long) || sizeof(T) <= sizeof(int), - "Unkown type size!"); + "Unknown type size!"); if constexpr (sizeof(T) == sizeof(long long)) { @@ -174,7 +174,7 @@ struct tr_popcnt { /* Use LUT for small sizes. In reality we only need half a * byte for each value if ever hit a case where perf is - * limitted by severe bottleneck on L1D this can be + * limited by severe bottleneck on L1D this can be * optimized. */ static constexpr uint8_t popcnt_lut[256] = { 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2, diff --git a/libtransmission/transmission.h b/libtransmission/transmission.h index 2577a6a71..4807801e6 100644 --- a/libtransmission/transmission.h +++ b/libtransmission/transmission.h @@ -314,7 +314,7 @@ bool tr_sessionIsIncompleteFileNamingEnabled(tr_session const* session); * @details If true, libtransmission will open a server socket to listen * for incoming http RPC requests as described in docs/rpc-spec.md. * - * This is intially set by tr_sessionInit() and can be + * This is initially set by tr_sessionInit() and can be * queried by tr_sessionIsRPCEnabled(). */ void tr_sessionSetRPCEnabled(tr_session* session, bool is_enabled); @@ -754,7 +754,7 @@ bool tr_blocklistIsEnabled(tr_session const* session); void tr_blocklistSetEnabled(tr_session* session, bool isEnabled); -/** @brief The blocklist that ges updated when an RPC client +/** @brief The blocklist that gets updated when an RPC client invokes the "blocklist-update" method */ void tr_blocklistSetURL(tr_session*, char const* url); diff --git a/macosx/InfoPeersViewController.mm b/macosx/InfoPeersViewController.mm index 438aa74f4..45be6f99d 100644 --- a/macosx/InfoPeersViewController.mm +++ b/macosx/InfoPeersViewController.mm @@ -463,7 +463,7 @@ NSAssert1(NO, @"Peer from unknown source: %ld", peerFrom); } - //determing status strings from flags + //determine status strings from flags NSMutableArray* statusArray = [NSMutableArray arrayWithCapacity:6]; NSString* flags = peer[@"Flags"]; diff --git a/macosx/TorrentTableView.mm b/macosx/TorrentTableView.mm index f5b0edf6d..b13f8ecd6 100644 --- a/macosx/TorrentTableView.mm +++ b/macosx/TorrentTableView.mm @@ -411,7 +411,7 @@ - (void)outlineViewSelectionIsChanging:(NSNotification*)notification { -#warning elliminate when view-based? +#warning eliminate when view-based? //if pushing a button, don't change the selected rows if (self.fSelectedValues) { diff --git a/news/news-3.00.md b/news/news-3.00.md index 9f5546f13..c3ed31587 100644 --- a/news/news-3.00.md +++ b/news/news-3.00.md @@ -23,7 +23,7 @@ - Parse `session-id` header case-insensitively ([#765](https://github.com/transmission/transmission/pull/765)) - Sanitize suspicious path components instead of rejecting them ([#62](https://github.com/transmission/transmission/pull/62), [#294](https://github.com/transmission/transmission/pull/294)) - Load CA certs from system store on Windows / OpenSSL ([#446](https://github.com/transmission/transmission/pull/446)) -- Add support for mbedtls (formely polarssl) and wolfssl (formely cyassl), LibreSSL ([#115](https://github.com/transmission/transmission/pull/115), [#116](https://github.com/transmission/transmission/pull/116), [#284](https://github.com/transmission/transmission/pull/284), [#486](https://github.com/transmission/transmission/pull/486), [#524](https://github.com/transmission/transmission/pull/524), [#570](https://github.com/transmission/transmission/pull/570)) +- Add support for mbedtls (formerly polarssl) and wolfssl (formerly cyassl), LibreSSL ([#115](https://github.com/transmission/transmission/pull/115), [#116](https://github.com/transmission/transmission/pull/116), [#284](https://github.com/transmission/transmission/pull/284), [#486](https://github.com/transmission/transmission/pull/486), [#524](https://github.com/transmission/transmission/pull/524), [#570](https://github.com/transmission/transmission/pull/570)) - Fix building against OpenSSL 1.1.0+ ([#24](https://github.com/transmission/transmission/pull/24)) - Fix quota support for uClibc-ng 1.0.18+ and DragonFly BSD ([#42](https://github.com/transmission/transmission/pull/42), [#58](https://github.com/transmission/transmission/pull/58), [#312](https://github.com/transmission/transmission/pull/312)) - Fix a number of memory leaks (magnet loading, session shutdown, bencoded data parsing) ([#56](https://github.com/transmission/transmission/pull/56)) diff --git a/web/src/transmission.js b/web/src/transmission.js index 34a1a97df..216a62d80 100644 --- a/web/src/transmission.js +++ b/web/src/transmission.js @@ -417,7 +417,7 @@ export class Transmission extends EventTarget { if (last === -1) { this._selectRow(row); } else { - // select the range between the prevous & current + // select the range between the previous & current const next = this._rows.indexOf(row); const min = Math.min(last, next); const max = Math.max(last, next);