From 1f87a19d1cb7321403a75797c756626896730ab4 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 24 Apr 2005 00:50:52 +0000 Subject: [PATCH] *** empty log message *** --- include/libtorrent/file.hpp | 8 ++++---- include/libtorrent/peer_connection.hpp | 2 +- src/policy.cpp | 6 +++--- src/session.cpp | 3 ++- src/torrent.cpp | 4 ++-- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/include/libtorrent/file.hpp b/include/libtorrent/file.hpp index ecedff2f3..2f8b841a3 100755 --- a/include/libtorrent/file.hpp +++ b/include/libtorrent/file.hpp @@ -69,8 +69,8 @@ namespace libtorrent int m_val; }; - const static seek_mode begin; - const static seek_mode end; + static const seek_mode begin; + static const seek_mode end; class open_mode { @@ -100,8 +100,8 @@ namespace libtorrent int m_mask; }; - const static open_mode in; - const static open_mode out; + static const open_mode in; + static const open_mode out; file(); file(boost::filesystem::path const& p, open_mode m); diff --git a/include/libtorrent/peer_connection.hpp b/include/libtorrent/peer_connection.hpp index 9c3e29abb..437ca0650 100755 --- a/include/libtorrent/peer_connection.hpp +++ b/include/libtorrent/peer_connection.hpp @@ -328,7 +328,7 @@ namespace libtorrent num_supported_messages }; - const static message_handler m_message_handler[num_supported_messages]; + static const message_handler m_message_handler[num_supported_messages]; int m_packet_size; int m_recv_pos; diff --git a/src/policy.cpp b/src/policy.cpp index ee16d5885..d3ed0a83d 100755 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -921,7 +921,7 @@ namespace libtorrent // this is called when we are choked by a peer // i.e. a peer lets us know that we will not receive // anything for a while - void policy::choked(peer_connection& c) + void policy::choked(peer_connection&) { } @@ -963,7 +963,7 @@ namespace libtorrent // TODO: we must be able to get interested // in a peer again, if a piece fails that // this peer has. - void policy::block_finished(peer_connection& c, piece_block b) + void policy::block_finished(peer_connection& c, piece_block) { // if the peer hasn't choked us, ask for another piece if (!c.has_peer_choked()) @@ -982,7 +982,7 @@ namespace libtorrent } // called when a peer is interested in us - void policy::interested(peer_connection& c) + void policy::interested(peer_connection&) { } diff --git a/src/session.cpp b/src/session.cpp index c617cac74..b834f5d14 100755 --- a/src/session.cpp +++ b/src/session.cpp @@ -985,8 +985,9 @@ namespace libtorrent char const* tracker_url , sha1_hash const& info_hash , boost::filesystem::path const& save_path - , entry const& resume_data) + , entry const&) { + // TODO: support resume data in this case assert(!save_path.empty()); { // lock the checker_thread diff --git a/src/torrent.cpp b/src/torrent.cpp index 9bc68da97..3865d9d6a 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -280,7 +280,7 @@ namespace libtorrent } void torrent::tracker_response( - tracker_request const& r + tracker_request const& , std::vector& peer_list , int interval , int complete @@ -1286,7 +1286,7 @@ namespace libtorrent // TODO: with some response codes, we should just consider // the tracker as a failure and not retry // it anymore - void torrent::tracker_request_error(tracker_request const& r + void torrent::tracker_request_error(tracker_request const& , int response_code, const std::string& str) { #ifdef TORRENT_VERBOSE_LOGGING