mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
remove compiler warnings libbitdht
This commit is contained in:
parent
65585658a5
commit
4a07e3cb30
@ -46,8 +46,6 @@ bdFilter::bdFilter(const std::string &fname, const bdNodeId *ownid, uint32_t fi
|
||||
mFns = fns;
|
||||
mFilename = fname ;
|
||||
|
||||
time_t now = time(NULL) ;
|
||||
|
||||
loadBannedIpFile() ;
|
||||
|
||||
mFilterFlags = filterFlags;
|
||||
@ -92,8 +90,6 @@ void bdFilter::loadBannedIpFile()
|
||||
memset(&addr, 0, sizeof(struct sockaddr_in));
|
||||
addr.sin_family = PF_INET;
|
||||
|
||||
unsigned short port;
|
||||
|
||||
FILE *fd = fopen(mFilename.c_str(),"r") ;
|
||||
|
||||
if(fd == NULL)
|
||||
|
@ -344,6 +344,8 @@ int bdSpace::find_node(const bdNodeId *id, int number, std::list<bdId> &matchIds
|
||||
std::cerr << " Number: " << number;
|
||||
std::cerr << " Bucket #: " << buckno;
|
||||
std::cerr << std::endl;
|
||||
#else
|
||||
(void)number;
|
||||
#endif
|
||||
|
||||
bdBucket &buck = buckets[buckno];
|
||||
|
Loading…
Reference in New Issue
Block a user