mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-27 18:12:21 -04:00
Removed some more compiler warnings from Windows compile (GCC 4.4).
Added -Wextra to the Windows compile. Added new define in libbitdht for snprintf and fprintf to proper handling of "%ll" under Windows. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4951 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2d2b7230d1
commit
970d88200d
35 changed files with 170 additions and 125 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "bitdht/bdpeer.h"
|
||||
#include "util/bdnet.h"
|
||||
#include "util/bdrandom.h"
|
||||
#include "util/bdstring.h"
|
||||
#include "bitdht/bdiface.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@ -941,13 +942,13 @@ int bdSpace::printDHT()
|
|||
if (size)
|
||||
{
|
||||
if (doPrint)
|
||||
fprintf(stderr, "Estimated NetSize >> %llu\n", no_nets);
|
||||
bd_fprintf(stderr, "Estimated NetSize >> %llu\n", no_nets);
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef BITDHT_DEBUG
|
||||
if (doPrint)
|
||||
fprintf(stderr, " Bucket = Net / >> %llu\n", no_nets);
|
||||
bd_fprintf(stderr, " Bucket = Net / >> %llu\n", no_nets);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -957,14 +958,14 @@ int bdSpace::printDHT()
|
|||
if (size)
|
||||
{
|
||||
if (doPrint)
|
||||
fprintf(stderr, "Estimated NetSize = %llu\n", no_peers);
|
||||
bd_fprintf(stderr, "Estimated NetSize = %llu\n", no_peers);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
#ifdef BITDHT_DEBUG
|
||||
if (doPrint)
|
||||
fprintf(stderr, " Bucket = Net / %llu\n", no_nets);
|
||||
bd_fprintf(stderr, " Bucket = Net / %llu\n", no_nets);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@ -994,7 +995,7 @@ int bdSpace::printDHT()
|
|||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "Estimated Network Size = (%llu / %d) = %llu\n", sum, count, sum / count);
|
||||
bd_fprintf(stderr, "Estimated Network Size = (%llu / %d) = %llu\n", sum, count, sum / count);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue