Ignore:
Timestamp:
Oct 2, 2007, 2:35:02 PM (13 years ago)
Author:
charles
Message:
  • simplify the the choking intervals
  • fix peer-mgr destructor bug
  • send debugging messagese to TR_DEBUG_FD instead of the console
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/ptrarray.c

    r3242 r3269  
    3838
    3939    return p;
     40}
     41
     42tr_ptrArray*
     43tr_ptrArrayDup( tr_ptrArray* in )
     44{
     45    tr_ptrArray * out;
     46
     47    out = tr_new( tr_ptrArray, 1 );
     48    out->n_items = in->n_items;
     49    out->n_alloc = in->n_items;
     50    out->items = tr_new( void*, out->n_alloc );
     51    memcpy( out->items, in->items, out->n_items * sizeof(void*) );
     52
     53    return out;
    4054}
    4155
Note: See TracChangeset for help on using the changeset viewer.