Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typos in libtransmission source code comments #5473

Merged
merged 5 commits into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libtransmission/bitfield.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void tr_bitfield::ensure_bits_alloced(size_t n)
{
bool const has_all = this->has_all();

/* Cant use getBytesNeededSafe as n can be > SIZE_MAX - 8. */
/* Can't use getBytesNeededSafe as n can be > SIZE_MAX - 8. */
size_t const bytes_needed = has_all ? getBytesNeeded(std::max(n, true_count_)) : getBytesNeeded(n);

if (std::size(flags_) < bytes_needed)
Expand Down
2 changes: 1 addition & 1 deletion libtransmission/net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ int tr_address::compare(tr_address const& that) const noexcept // <=>

// TODO: 2000::/3 is commonly used for global unicast but technically
// other spaces would be allowable too, so we should test those here.
// See RFC 4291 in the Section 2.4 lising global unicast as everything
// See RFC 4291 in the Section 2.4 listing global unicast as everything
// that's not link-local, multicast, loopback, or unspecified.
return (a[0] & 0xE0) == 0x20;
}
Expand Down
2 changes: 1 addition & 1 deletion libtransmission/session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ void tr_session::setSettings(tr_session_settings&& settings_in, bool force)
}

// Sends out announce messages with advertisedPeerPort(), so this
// section neesd be happen here after the peer port settings changes
// section needs to happen here after the peer port settings changes
if (auto const& val = new_settings.lpd_enabled; force || val != old_settings.lpd_enabled)
{
if (val)
Expand Down