Changeset 10242


Ignore:
Timestamp:
Feb 20, 2010, 5:17:57 PM (12 years ago)
Author:
charles
Message:

(trunk libT) revise r10238 to be a little more readable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r10241 r10242  
    14901490    int pos = -1;
    14911491    tr_ptrArray tmp;
    1492     char ** events;
     1492    const char ** events;
    14931493    const char * str = NULL;
    14941494
     
    14971497
    14981498    /* special case #1: if "stopped" is in the queue, ignore everything before it */
    1499     events = (char**) tr_ptrArrayPeek( &tier->announceEvents, &n );
     1499    events = (const char**) tr_ptrArrayPeek( &tier->announceEvents, &n );
    15001500    if( pos == -1 ) {
    15011501        for( i=0; i<n; ++i )
     
    15221522    if( pos >= 0 ) {
    15231523        for( i=pos+1; i<n; ++i )
    1524             if( events[pos] != events[i] )
     1524            if( strcmp( events[pos], events[i] ) )
    15251525                break;
    15261526        pos = i - 1;
     
    15441544    tmp = TR_PTR_ARRAY_INIT;
    15451545    for( i=pos+1; i<n; ++i )
    1546         tr_ptrArrayAppend( &tmp, events[i] );
     1546        tr_ptrArrayAppend( &tmp, (void*)events[i] );
    15471547    tr_ptrArrayDestruct( &tier->announceEvents, NULL );
    15481548    tier->announceEvents = tmp;
Note: See TracChangeset for help on using the changeset viewer.