* Fixed warnings in snprintf statements.

* Don't send numwant in tracker STOPPED requests.

* Reintroudced clearing of epoll event list when a socket is closed as it might cause race conditions.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1097 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2009-10-22 07:01:53 +00:00
parent abcb2cea48
commit 6c3a80636a
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ print_buffer(char* first, char* last, const char* format) {
if (first >= last)
return first;
int s = snprintf(first, last - first, format);
// Adding 'i' format to suppress a GCC warning.
int s = snprintf(first, last - first, format, 0);
if (s < 0)
return first;