Browse Source

silenced some clang warnings

dynamic-accesslists
denis 13 years ago
parent
commit
1968f47d74
  1. 2
      ot_clean.c
  2. 2
      ot_fullscrape.c
  3. 4
      ot_stats.c

2
ot_clean.c

@ -100,7 +100,7 @@ int clean_single_torrent( ot_torrent *torrent ) {
/* Clean up all peers in current bucket, remove timedout pools and /* Clean up all peers in current bucket, remove timedout pools and
torrents */ torrents */
static void * clean_worker( void * args ) { static void * clean_worker( void * args ) {
args=args; (void) args;
while( 1 ) { while( 1 ) {
int bucket = OT_BUCKET_COUNT; int bucket = OT_BUCKET_COUNT;
while( bucket-- ) { while( bucket-- ) {

2
ot_fullscrape.c

@ -57,7 +57,7 @@ static void * fullscrape_worker( void * args ) {
int iovec_entries; int iovec_entries;
struct iovec *iovector; struct iovec *iovector;
args = args; (void) args;
while( 1 ) { while( 1 ) {
ot_tasktype tasktype = TASK_FULLSCRAPE; ot_tasktype tasktype = TASK_FULLSCRAPE;

4
ot_stats.c

@ -566,7 +566,7 @@ size_t stats_return_tracker_version( char *reply ) {
} }
size_t return_stats_for_tracker( char *reply, int mode, int format ) { size_t return_stats_for_tracker( char *reply, int mode, int format ) {
format = format; (void) format;
switch( mode & TASK_TASK_MASK ) { switch( mode & TASK_TASK_MASK ) {
case TASK_STATS_CONNS: case TASK_STATS_CONNS:
return stats_connections_mrtg( reply ); return stats_connections_mrtg( reply );
@ -725,7 +725,7 @@ static void * stats_worker( void * args ) {
int iovec_entries; int iovec_entries;
struct iovec *iovector; struct iovec *iovector;
args = args; (void) args;
while( 1 ) { while( 1 ) {
ot_tasktype tasktype = TASK_STATS; ot_tasktype tasktype = TASK_STATS;

Loading…
Cancel
Save