diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2005-01-19 13:36:52 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2005-01-19 13:36:52 +0000 |
commit | 7404ab9f0315df056427c503d1a0bf6e3e6be087 (patch) | |
tree | 49bc0fb6d2844db6ad688fc8a253b0f33ddd3f51 | |
parent | 5d26311188f89b3fcd4907cad7b207049b6ad2de (diff) |
Notes
-rw-r--r-- | net-p2p/libtorrent/files/patch-src::data::file_chunk.cc | 28 | ||||
-rw-r--r-- | net/libtorrent/files/patch-src::data::file_chunk.cc | 28 |
2 files changed, 56 insertions, 0 deletions
diff --git a/net-p2p/libtorrent/files/patch-src::data::file_chunk.cc b/net-p2p/libtorrent/files/patch-src::data::file_chunk.cc new file mode 100644 index 000000000000..2589ee5d7a66 --- /dev/null +++ b/net-p2p/libtorrent/files/patch-src::data::file_chunk.cc @@ -0,0 +1,28 @@ +--- src/data/file_chunk.cc.orig Mon Jan 17 21:31:30 2005 ++++ src/data/file_chunk.cc Mon Jan 17 21:32:21 2005 +@@ -6,6 +6,7 @@ + #include <sstream> + #include <unistd.h> + #include <sys/mman.h> ++#include <sys/types.h> + + namespace torrent { + +@@ -32,7 +33,7 @@ + std::stringstream s; + + s << "Tried to check incore status in FileChunk with out of range parameters or a NULL buffer (" +- << std::hex << '(' << (unsigned int)m_begin << ',' << (unsigned int)m_end << ')'; ++ << std::hex << '(' << m_begin << ',' << m_end << ')'; + + throw internal_error(s.str()); + } +@@ -63,7 +64,7 @@ + std::stringstream s; + + s << "Tried to advise FileChunk with out of range parameters" +- << std::hex << '(' << (unsigned int)m_begin << ',' << (unsigned int)m_end << ',' << offset << ',' << len << ')'; ++ << std::hex << '(' << m_begin << ',' << m_end << ',' << offset << ',' << len << ')'; + + throw internal_error(s.str()); + } diff --git a/net/libtorrent/files/patch-src::data::file_chunk.cc b/net/libtorrent/files/patch-src::data::file_chunk.cc new file mode 100644 index 000000000000..2589ee5d7a66 --- /dev/null +++ b/net/libtorrent/files/patch-src::data::file_chunk.cc @@ -0,0 +1,28 @@ +--- src/data/file_chunk.cc.orig Mon Jan 17 21:31:30 2005 ++++ src/data/file_chunk.cc Mon Jan 17 21:32:21 2005 +@@ -6,6 +6,7 @@ + #include <sstream> + #include <unistd.h> + #include <sys/mman.h> ++#include <sys/types.h> + + namespace torrent { + +@@ -32,7 +33,7 @@ + std::stringstream s; + + s << "Tried to check incore status in FileChunk with out of range parameters or a NULL buffer (" +- << std::hex << '(' << (unsigned int)m_begin << ',' << (unsigned int)m_end << ')'; ++ << std::hex << '(' << m_begin << ',' << m_end << ')'; + + throw internal_error(s.str()); + } +@@ -63,7 +64,7 @@ + std::stringstream s; + + s << "Tried to advise FileChunk with out of range parameters" +- << std::hex << '(' << (unsigned int)m_begin << ',' << (unsigned int)m_end << ',' << offset << ',' << len << ')'; ++ << std::hex << '(' << m_begin << ',' << m_end << ',' << offset << ',' << len << ')'; + + throw internal_error(s.str()); + } |