summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordenis <>2011-11-16 00:41:16 +0000
committerdenis <>2011-11-16 00:41:16 +0000
commit1968f47d7429afbbf1b84795c8d0284c93aa5061 (patch)
tree291df8ee4a1702ce6227be95d3d9bf7d64f8fd5f
parent85df3dbc016578481bf6c7e532e40c657a0b9b50 (diff)
silenced some clang warnings
-rw-r--r--ot_clean.c2
-rw-r--r--ot_fullscrape.c2
-rw-r--r--ot_stats.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/ot_clean.c b/ot_clean.c
index cfb6bcf..6024c08 100644
--- a/ot_clean.c
+++ b/ot_clean.c
@@ -100,7 +100,7 @@ int clean_single_torrent( ot_torrent *torrent ) {
100/* Clean up all peers in current bucket, remove timedout pools and 100/* Clean up all peers in current bucket, remove timedout pools and
101 torrents */ 101 torrents */
102static void * clean_worker( void * args ) { 102static void * clean_worker( void * args ) {
103 args=args; 103 (void) args;
104 while( 1 ) { 104 while( 1 ) {
105 int bucket = OT_BUCKET_COUNT; 105 int bucket = OT_BUCKET_COUNT;
106 while( bucket-- ) { 106 while( bucket-- ) {
diff --git a/ot_fullscrape.c b/ot_fullscrape.c
index 46ce8f8..583f847 100644
--- a/ot_fullscrape.c
+++ b/ot_fullscrape.c
@@ -57,7 +57,7 @@ static void * fullscrape_worker( void * args ) {
57 int iovec_entries; 57 int iovec_entries;
58 struct iovec *iovector; 58 struct iovec *iovector;
59 59
60 args = args; 60 (void) args;
61 61
62 while( 1 ) { 62 while( 1 ) {
63 ot_tasktype tasktype = TASK_FULLSCRAPE; 63 ot_tasktype tasktype = TASK_FULLSCRAPE;
diff --git a/ot_stats.c b/ot_stats.c
index 064f364..ba08bbc 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -566,7 +566,7 @@ size_t stats_return_tracker_version( char *reply ) {
566} 566}
567 567
568size_t return_stats_for_tracker( char *reply, int mode, int format ) { 568size_t return_stats_for_tracker( char *reply, int mode, int format ) {
569 format = format; 569 (void) format;
570 switch( mode & TASK_TASK_MASK ) { 570 switch( mode & TASK_TASK_MASK ) {
571 case TASK_STATS_CONNS: 571 case TASK_STATS_CONNS:
572 return stats_connections_mrtg( reply ); 572 return stats_connections_mrtg( reply );
@@ -725,7 +725,7 @@ static void * stats_worker( void * args ) {
725 int iovec_entries; 725 int iovec_entries;
726 struct iovec *iovector; 726 struct iovec *iovector;
727 727
728 args = args; 728 (void) args;
729 729
730 while( 1 ) { 730 while( 1 ) {
731 ot_tasktype tasktype = TASK_STATS; 731 ot_tasktype tasktype = TASK_STATS;