SOURCES: rtorrent-client_info.patch - fixed ident BitTornado >= 0....
charles
charles at pld-linux.org
Sun Oct 29 05:10:36 CET 2006
Author: charles Date: Sun Oct 29 04:10:36 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fixed ident BitTornado >= 0.3.17
---- Files affected:
SOURCES:
rtorrent-client_info.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/rtorrent-client_info.patch
diff -u SOURCES/rtorrent-client_info.patch:1.2 SOURCES/rtorrent-client_info.patch:1.3
--- SOURCES/rtorrent-client_info.patch:1.2 Mon Aug 21 14:59:02 2006
+++ SOURCES/rtorrent-client_info.patch Sun Oct 29 05:10:30 2006
@@ -1,5 +1,5 @@
---- rtorrent-0.6.1/src/display/client_info.cc.orig 2006-08-11 22:41:57.000000000 +0200
-+++ rtorrent-0.6.1/src/display/client_info.cc 2006-08-20 16:30:05.887372250 +0200
+--- rtorrent-0.6.3/src/display/client_info.cc.orig 2006-09-29 13:56:40.000000000 +0200
++++ rtorrent-0.6.3/src/display/client_info.cc 2006-10-29 02:07:44.887169520 +0100
@@ -136,9 +136,14 @@
client_info_equal(id + 1, sizeof_key(TYPE_AZUREUS)));
@@ -18,7 +18,31 @@
else
first = print_buffer(first, last, "unknown %c%c %hhu.%hhu.%hhu.%hhu", id[1], id[2],
-@@ -160,16 +165,22 @@
+@@ -146,30 +151,42 @@
+ rak::hexchar_to_value(id[5]), rak::hexchar_to_value(id[6]));
+
+ } else if (std::isalpha(id[0]) && id[4] == '-' &&
+- std::isxdigit(id[1]) && std::isxdigit(id[2]) && std::isxdigit(id[3])) {
++ std::isxdigit(id[1]) && std::isxdigit(id[2])) {
+ // TYPE_THREE_COMPACT.
+
+ const_iterator itr = std::find_if(m_containers[TYPE_COMPACT].begin(), m_containers[TYPE_COMPACT].end(),
+ client_info_equal(id, sizeof_key(TYPE_COMPACT)));
+
+- if (itr != m_containers[TYPE_COMPACT].end())
++ if (itr != m_containers[TYPE_COMPACT].end()) {
++ char c;
++ if (id[3] > 'F' && c < 'a')
++ c = id[3] - 'F' + 0xF;
++ else
++ c = rak::hexchar_to_value(id[3]);
++
+ first = print_buffer(first, last, "%s %hhu.%hhu.%hhu", itr->second,
+- rak::hexchar_to_value(id[1]), rak::hexchar_to_value(id[2]), rak::hexchar_to_value(id[3]));
+-
++ rak::hexchar_to_value(id[1]), rak::hexchar_to_value(id[2]), c);
++ }
+ else
first = print_buffer(first, last, "unknown %c %hhu.%hhu.%hhu", id[0],
rak::hexchar_to_value(id[1]), rak::hexchar_to_value(id[2]), rak::hexchar_to_value(id[3]));
@@ -45,7 +69,7 @@
else
first = print_buffer(first, last, "unknown %c %hhu.%hhu.%hhu", id[0],
-@@ -183,6 +194,26 @@
+@@ -183,6 +200,26 @@
// checks as they wouldn't be possible to remove/modify.
} else {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/rtorrent-client_info.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list