File aria2-atoi.patch of Package aria2
--- src/ActivePeerConnectionCommand.cc.orig 2008-10-06 18:34:59.000000000 +0200
+++ src/ActivePeerConnectionCommand.cc 2008-10-06 20:14:47.000000000 +0200
@@ -32,6 +32,7 @@
* files in the program, then also delete it here.
*/
/* copyright --> */
+#include <cstdlib>
#include "ActivePeerConnectionCommand.h"
#include "PeerInitiateConnectionCommand.h"
#include "CUIDCounter.h"
@@ -91,7 +92,7 @@
btRuntime->lessThanMinPeers()))) {
size_t numConnection = pieceStorage->downloadFinished() ?
std::min(_numNewConnection,
- BtRuntime::MAX_PEERS-btRuntime->getConnections()) :
+ (size_t) BtRuntime::MAX_PEERS-btRuntime->getConnections()) :
_numNewConnection;
for(size_t numAdd = numConnection;
numAdd > 0 && peerStorage->isPeerAvailable(); --numAdd) {