diff --git a/.gitignore b/.gitignore index 2e1ad6af0..5a228cc04 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ *.rej bin +cmake-build-* config* Makefile build-aux diff --git a/ChangeLog b/ChangeLog index e31096be8..f8fc71d3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + * make sequence number for mutable DHT items backed by std::int64_t * tweaked storage_interface to have stronger type safety * 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 diff --git a/include/libtorrent/file_storage.hpp b/include/libtorrent/file_storage.hpp index 4a608b993..fbce89d68 100644 --- a/include/libtorrent/file_storage.hpp +++ b/include/libtorrent/file_storage.hpp @@ -150,7 +150,7 @@ namespace libtorrent // the number of characters in the name. If this is // name_is_owned, name is 0-terminated and owned by this object // (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 std::uint64_t name_len:12; std::uint64_t pad_file:1; @@ -633,7 +633,7 @@ namespace libtorrent namespace aux { // 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 // pieces will be included. TORRENT_EXTRA_EXPORT std::tuple file_piece_range_exclusive(file_storage const& fs, int file); diff --git a/src/receive_buffer.cpp b/src/receive_buffer.cpp index f401d082a..ff5bd547f 100644 --- a/src/receive_buffer.cpp +++ b/src/receive_buffer.cpp @@ -74,7 +74,7 @@ void receive_buffer::grow(int const limit) int const new_size = (current_size < m_packet_size) ? 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 , span(m_recv_buffer.data(), m_recv_end)); m_recv_buffer = std::move(new_buffer); diff --git a/src/udp_tracker_connection.cpp b/src/udp_tracker_connection.cpp index 5a5dc9143..06873aa29 100644 --- a/src/udp_tracker_connection.cpp +++ b/src/udp_tracker_connection.cpp @@ -344,7 +344,7 @@ namespace libtorrent std::shared_ptr cb = requester(); #endif - // ignore resposes before we've sent any requests + // ignore responses before we've sent any requests if (m_state == action_t::error) { #ifndef TORRENT_DISABLE_LOGGING @@ -447,7 +447,7 @@ namespace libtorrent 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; if (m_transaction_id != 0)