Fixed compile error

pull/1/head
Tatsuhiro Tsujikawa 2011-03-21 11:34:35 +09:00
parent 64962320a6
commit 60a21e672c
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@
#include "Logger.h" #include "Logger.h"
#include "a2functional.h" #include "a2functional.h"
#include "fmt.h" #include "fmt.h"
#include "util.h"
namespace aria2 { namespace aria2 {

View File

@ -46,6 +46,7 @@
#include "Logger.h" #include "Logger.h"
#include "a2functional.h" #include "a2functional.h"
#include "fmt.h" #include "fmt.h"
#include "util.h"
namespace aria2 { namespace aria2 {
@ -213,7 +214,7 @@ void SelectEventPoll::poll(const struct timeval& tv)
} }
(*i)->processEvents(events); (*i)->processEvents(events);
} }
} else if(res == -1) { } else if(retval == -1) {
int errNum = errno; int errNum = errno;
A2_LOG_INFO(fmt("select error: %s", util::safeStrerror(errNum).c_str())); A2_LOG_INFO(fmt("select error: %s", util::safeStrerror(errNum).c_str()));
} }