changelog note, typos and .gitignore

This commit is contained in:
Alden Torres 2016-12-12 23:53:03 -05:00 committed by Arvid Norberg
parent f382936d56
commit 63df1a26b6
5 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@ -39,6 +39,7 @@
*.rej *.rej
bin bin
cmake-build-*
config* config*
Makefile Makefile
build-aux build-aux

View File

@ -1,3 +1,4 @@
* make sequence number for mutable DHT items backed by std::int64_t
* tweaked storage_interface to have stronger type safety * tweaked storage_interface to have stronger type safety
* deprecate relative times in torrent_status, replaced by std::chrono::time_point * deprecate relative times in torrent_status, replaced by std::chrono::time_point
* refactor in alert types to use more const fields and more clear API * refactor in alert types to use more const fields and more clear API

View File

@ -150,7 +150,7 @@ namespace libtorrent
// the number of characters in the name. If this is // the number of characters in the name. If this is
// name_is_owned, name is 0-terminated and owned by this object // name_is_owned, name is 0-terminated and owned by this object
// (i.e. it should be freed in the destructor). If // (i.e. it should be freed in the destructor). If
// the len is not name_is_owned, the name pointer doesn not belong // the len is not name_is_owned, the name pointer does not belong
// to this object, and it's not 0-terminated // to this object, and it's not 0-terminated
std::uint64_t name_len:12; std::uint64_t name_len:12;
std::uint64_t pad_file:1; std::uint64_t pad_file:1;
@ -633,7 +633,7 @@ namespace libtorrent
namespace aux { namespace aux {
// returns the piece range that entirely falls within the specified file. the // returns the piece range that entirely falls within the specified file. the
// end piece is one-past the last piece that entierly falls within the file. // end piece is one-past the last piece that entirely falls within the file.
// i.e. They can conveniently be used as loop boundaries. No edge partial // i.e. They can conveniently be used as loop boundaries. No edge partial
// pieces will be included. // pieces will be included.
TORRENT_EXTRA_EXPORT std::tuple<int, int> file_piece_range_exclusive(file_storage const& fs, int file); TORRENT_EXTRA_EXPORT std::tuple<int, int> file_piece_range_exclusive(file_storage const& fs, int file);

View File

@ -74,7 +74,7 @@ void receive_buffer::grow(int const limit)
int const new_size = (current_size < m_packet_size) int const new_size = (current_size < m_packet_size)
? m_packet_size : std::min(current_size * 3 / 2, limit); ? m_packet_size : std::min(current_size * 3 / 2, limit);
// re-allcoate the buffer and copy over the part of it that's used // re-allocate the buffer and copy over the part of it that's used
buffer new_buffer(new_size buffer new_buffer(new_size
, span<char const>(m_recv_buffer.data(), m_recv_end)); , span<char const>(m_recv_buffer.data(), m_recv_end));
m_recv_buffer = std::move(new_buffer); m_recv_buffer = std::move(new_buffer);

View File

@ -344,7 +344,7 @@ namespace libtorrent
std::shared_ptr<request_callback> cb = requester(); std::shared_ptr<request_callback> cb = requester();
#endif #endif
// ignore resposes before we've sent any requests // ignore responses before we've sent any requests
if (m_state == action_t::error) if (m_state == action_t::error)
{ {
#ifndef TORRENT_DISABLE_LOGGING #ifndef TORRENT_DISABLE_LOGGING
@ -447,7 +447,7 @@ namespace libtorrent
void udp_tracker_connection::update_transaction_id() void udp_tracker_connection::update_transaction_id()
{ {
// don't use 0, because that has special meaning (unintialized) // don't use 0, because that has special meaning (uninitialized)
std::uint32_t const new_tid = random(0xfffffffe) + 1; std::uint32_t const new_tid = random(0xfffffffe) + 1;
if (m_transaction_id != 0) if (m_transaction_id != 0)