]> granicus.if.org Git - transmission/commitdiff
(trunk libT) try to fix the mac build. This commit still has the announce logging...
authorCharles Kerr <charles@transmissionbt.com>
Wed, 10 Feb 2010 04:42:34 +0000 (04:42 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Wed, 10 Feb 2010 04:42:34 +0000 (04:42 +0000)
libtransmission/announcer.c

index 9f900de289670340fe9c7a95e2695a6b6dc89ed7..8ece4a910b14c3e1fdd21bca762adab653324736 100644 (file)
@@ -866,7 +866,7 @@ static void
 tierAddAnnounce( tr_tier * tier, const char * announceEvent, time_t announceAt )
 {
     assert( tier != NULL );
-    assert( event != NULL );
+    assert( announceEvent != NULL );
 
     tr_ptrArrayAppend( &tier->announceEvents, (void*)announceEvent );
     tier->announceAt = announceAt;
@@ -1411,10 +1411,9 @@ getNextAnnounceEvent( tr_tier * tier )
     const char * str = NULL;
 
     assert( tier != NULL );
-    assert( tier->announceEvent != NULL );
     assert( tr_isTorrent( tier->tor ) );
 
-    /* rule #1: if there's a "stopped" in the queue, ignore everything before it */
+    /* rule #1: if "stopped" is in the queue, ignore everything before it */
     events = (char**) tr_ptrArrayPeek( &tier->announceEvents, &n );
     for( i=0; pos<0 && i<n; ++i )
         if( !strcmp( events[i], "stopped" ) )