mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
fix: comment typos in libtransmission (#5473)
This commit is contained in:
parent
3605330b6e
commit
96aefb5fc3
3 changed files with 3 additions and 3 deletions
|
@ -203,7 +203,7 @@ void tr_bitfield::ensureBitsAlloced(size_t n)
|
||||||
{
|
{
|
||||||
bool const has_all = hasAll();
|
bool const has_all = hasAll();
|
||||||
|
|
||||||
/* 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);
|
size_t const bytes_needed = has_all ? getBytesNeeded(std::max(n, true_count_)) : getBytesNeeded(n);
|
||||||
|
|
||||||
if (std::size(flags_) < bytes_needed)
|
if (std::size(flags_) < bytes_needed)
|
||||||
|
|
|
@ -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
|
// TODO: 2000::/3 is commonly used for global unicast but technically
|
||||||
// other spaces would be allowable too, so we should test those here.
|
// 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.
|
// that's not link-local, multicast, loopback, or unspecified.
|
||||||
return (a[0] & 0xE0) == 0x20;
|
return (a[0] & 0xE0) == 0x20;
|
||||||
}
|
}
|
||||||
|
|
|
@ -764,7 +764,7 @@ void tr_session::setSettings(tr_session_settings&& settings_in, bool force)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sends out announce messages with advertisedPeerPort(), so this
|
// 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 (auto const& val = new_settings.lpd_enabled; force || val != old_settings.lpd_enabled)
|
||||||
{
|
{
|
||||||
if (val)
|
if (val)
|
||||||
|
|
Loading…
Reference in a new issue