Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier2k6 authored and arvidn committed Sep 29, 2024
1 parent 2ab8fed commit 790b662
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
2.0 released

* dropped dependency on iconv
* deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents
* deprecate set_file_hash() in torrent creator, as it's superseded by v2 torrents
* deprecate mutable access to info_section in torrent_info
* removed deprecated lazy_entry/lazy_bdecode
* stats_alert deprecated
Expand Down
2 changes: 1 addition & 1 deletion Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ rule linking ( properties * )
else if [ version.version-less $(jam-version) : 1990 0 ]
{
# the visibility feature was introduced in boost-1.69. This was close to
# when the verisoning scheme changed from year to (low) version numbers.
# when the versioning scheme changed from year to (low) version numbers.
# in boost-1.70
result += <visibility>hidden ;
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ feature.compose <libtorrent-python-pic>on : <cxxflags>-fPIC ;
feature python-install-path : : free path ;

# when not specifying a custom install path, this controls whether to install
# the python module in the system directory or user-specifc directory
# the python module in the system directory or user-specific directory
feature python-install-scope : user system : ;

# copied from boost 1.63's boost python jamfile
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/alert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ void bind_alert()
;

#if TORRENT_ABI_VERSION == 1
enum_<listen_succeeded_alert::socket_type_t>("listen_succeded_alert_socket_type_t")
enum_<listen_succeeded_alert::socket_type_t>("listen_succeeded_alert_socket_type_t")
.value("tcp", listen_succeeded_alert::socket_type_t::tcp)
.value("tcp_ssl", listen_succeeded_alert::socket_type_t::tcp_ssl)
.value("udp", listen_succeeded_alert::socket_type_t::udp)
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_piece_deadlines(self):
self.setup()
self.h.clear_piece_deadlines()

def test_status_last_uploaded_dowloaded(self):
def test_status_last_uploaded_downloaded(self):
# we want to check at seconds precision but can't control session
# time, wait for next full second to prevent second increment
time.sleep(1 - datetime.datetime.now().microsecond / 1000000.0)
Expand Down
2 changes: 1 addition & 1 deletion cmake/Modules/LibtorrentMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endmacro()
# target_optional_compile_definitions(<target> [FEATURE]
# NAME <name> DESCRIPTION <description> DEFAULT <default_value>
# [ENABLED [enabled_compile_definitions...]]
# [DISABLED [disabled_compile_defnitions...]]
# [DISABLED [disabled_compile_definitions...]]
# )
# NAME, DESCRIPTION and DEFAULT are passed to option() call
# if FEATURE is given, they are passed to add_feature_info()
Expand Down
2 changes: 1 addition & 1 deletion examples/connection_tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void generate_block(span<std::uint32_t> buffer, piece_index_t const piece
for (auto& w : buffer) w = fill;
}

// in order to circumvent the restricton of only
// in order to circumvent the restriction of only
// one connection per IP that most clients implement
// all sockets created by this tester are bound to
// unique local IPs in the range (127.0.0.1 - 127.255.255.255)
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/aux_/merkle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ namespace libtorrent {
// if we're inserting the hash N, the uncle hashes provide proof of it being
// valid by containing 0, 1 and two (as marked in the tree above)
// Any non-zero hash encountered in target_tree is assumed to be valid, and
// will termiate the validation early, either successful (if there's a
// will terminate the validation early, either successful (if there's a
// match) or unsuccessful (if there's a mismatch).
TORRENT_EXTRA_EXPORT
bool merkle_validate_and_insert_proofs(span<sha256_hash> target_tree
Expand Down
2 changes: 1 addition & 1 deletion include/libtorrent/hash_picker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ namespace libtorrent

// this is for a future per-block request feature
#if 0
// blocks are only added to this list if there is a time critial block which
// blocks are only added to this list if there is a time critical block which
// has been downloaded but we don't have its hash or if the initial request
// for the hash was rejected
// this block hash will be requested from every peer possible until the hash
Expand Down
2 changes: 1 addition & 1 deletion simulation/test_web_seed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ TORRENT_TEST(urlseed_timeout)
// check for correct handle of unexpected http status response.
// with disabled "close_redundant_connections" alive web server connection
// may be closed in such manner.
TORRENT_TEST(no_close_redudant_webseed)
TORRENT_TEST(no_close_redundant_webseed)
{
using namespace lt;

Expand Down
2 changes: 1 addition & 1 deletion src/hash_picker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool validate_hash_request(hash_request const& hr, file_storage const& fs)
{
// limit the size of the base layer to something reasonable
// Blocks are requested for an entire piece so this limit
// effectivly caps the piece size we can handle. A limit of 8192
// effectively caps the piece size we can handle. A limit of 8192
// corresponds to a piece size of 128MB.

if (hr.file < file_index_t{0}
Expand Down
2 changes: 1 addition & 1 deletion src/kademlia/routing_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ routing_table::add_node_status_t routing_table::add_node_impl(node_entry e)
existing->update_rtt(e.rtt);
existing->last_queried = e.last_queried;
}
// if this was a replacement node it may be elligible for
// if this was a replacement node it may be eligible for
// promotion to the live bucket
fill_from_replacements(existing_bucket);
prune_empty_bucket();
Expand Down
2 changes: 1 addition & 1 deletion src/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ namespace {
// count number of path elements left in base, and prepend that number of
// "../" to target

// base alwaus points to a directory. There's an implied directory
// base always points to a directory. There's an implied directory
// separator at the end of it
int const num_steps = static_cast<int>(std::count(
base.begin(), base.end(), TORRENT_SEPARATOR_CHAR)) + (base.empty() ? 0 : 1);
Expand Down
2 changes: 1 addition & 1 deletion src/puff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* - Use pointers instead of long to specify source and
* destination sizes to avoid arbitrary 4 GB limits
* 1.2 17 Mar 2002 - Add faster version of decode(), doubles speed (!),
* but leave simple version for readabilty
* but leave simple version for readability
* - Make sure invalid distances detected if pointers
* are 16 bits
* - Fix fixed codes table error
Expand Down
2 changes: 1 addition & 1 deletion test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ int EXPORT main(int argc, char const* argv[])

if (!tests_to_run.empty())
{
std::printf("\x1b[1mUNKONWN tests:\x1b[0m\n");
std::printf("\x1b[1mUNKNOWN tests:\x1b[0m\n");
for (std::set<std::string>::iterator i = tests_to_run.begin()
, end(tests_to_run.end()); i != end; ++i)
{
Expand Down
2 changes: 1 addition & 1 deletion test/socks.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def handle(self):
sys.stdout.flush()

def inner_handle(self):
# IMRPOVEMENT: Report who requests are from in logging
# IMPROVEMENT: Report who requests are from in logging
# IMPROVEMENT: Timeout on client
debug('Connection - authenticating')
version = self.read(1)
Expand Down
4 changes: 2 additions & 2 deletions test/test_bdecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ TORRENT_TEST(item_limit)
}

// test unexpected EOF
TORRENT_TEST(unepected_eof)
TORRENT_TEST(unexpected_eof)
{
char b[] = "l2:.."; // expected terminating 'e'

Expand All @@ -525,7 +525,7 @@ TORRENT_TEST(unepected_eof)
}

// test unexpected EOF in string length
TORRENT_TEST(unepected_eof2)
TORRENT_TEST(unexpected_eof2)
{
char b[] = "l2:..0"; // expected ':' delimiter instead of EOF

Expand Down
2 changes: 1 addition & 1 deletion test/test_dht.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ TORRENT_TEST(invalid_message)
}
}

TORRENT_TEST(node_id_testng)
TORRENT_TEST(node_id_testing)
{
node_id rnd = generate_secret_id();
TEST_CHECK(verify_secret_id(rnd));
Expand Down
2 changes: 1 addition & 1 deletion test/test_file_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ TORRENT_TEST(file_first_piece_node)
// the size of the merkle tree is implied by the size of the file.
// 0x500000 / 0x10000 = 80 pieces
// a merkle tree must have a power of 2 number of leaves, so that's 128,
// thats 7 layers
// that's 7 layers
TEST_EQUAL(first_piece_node(0x10000, 0x500000), 127);
TEST_EQUAL(first_piece_node(0x8000, 0x500000), 255);
TEST_EQUAL(first_piece_node(0x4000, 0x500000), 511);
Expand Down
2 changes: 1 addition & 1 deletion test/test_piece_picker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2394,7 +2394,7 @@ TORRENT_TEST(mark_as_pad_pick_short_last_piece)
// there is no block 3 in this piece
}

TORRENT_TEST(mark_as_pad_pick_short_last_piece_prefer_contiguos)
TORRENT_TEST(mark_as_pad_pick_short_last_piece_prefer_contiguous)
{
auto p = std::make_shared<piece_picker>(
3 * default_piece_size - default_block_size, default_piece_size);
Expand Down
4 changes: 2 additions & 2 deletions test/test_xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ TORRENT_TEST(xml_tag_no_attribute_whitespace)
test_parse("<?xml ?>", "Dxml");
}

TORRENT_TEST(attribute_missing_qoute)
TORRENT_TEST(attribute_missing_quote)
{
test_parse("<a f=1>foo</a f='b>"
, "BaPunquoted attribute valueSfooFaPmissing end quote on attribute");
Expand Down Expand Up @@ -473,7 +473,7 @@ TORRENT_TEST(unterminated_tag)
test_parse("<foo", "Punexpected end of file");
}

TORRENT_TEST(unqouted_attribute_value)
TORRENT_TEST(unquoted_attribute_value)
{
// test unquoted attribute values
test_parse("<foo a=bar>", "BfooPunquoted attribute value");
Expand Down
2 changes: 1 addition & 1 deletion test/utf8_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Danish (da)

Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen
Wolther spillede på xylofon.
(= Quiz contestants were eating strawbery with cream while Wolther
(= Quiz contestants were eating strawberries with cream while Wolther
the circus clown played on xylophone.)

German (de)
Expand Down

0 comments on commit 790b662

Please sign in to comment.