From 9c4c49c4430c923f676dd5a77508a098c17dd11e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 27 Mar 2009 17:14:15 +0000 Subject: [PATCH] logging build fix and indentation fix --- include/libtorrent/alert_types.hpp | 2 +- src/peer_connection.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 75298bdbb..094be3428 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -121,7 +121,7 @@ namespace libtorrent boost::shared_array buffer; int piece; - int size; + int size; }; struct TORRENT_EXPORT file_renamed_alert: torrent_alert diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index a19090184..cd384c222 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1696,9 +1696,9 @@ namespace libtorrent { #if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING (*m_logger) << time_now_string() - << " <== INVALID_PIECE [ piece: " << p.piece << " | " - "start: " << p.start << " | " - "length: " << p.length << " ]\n"; + << " <== INVALID_PIECE [ piece: " << r.piece << " | " + "start: " << r.start << " | " + "length: " << r.length << " ]\n"; #endif disconnect("got invalid piece packet", 2); return;