Changeset 11921


Ignore:
Timestamp:
Feb 18, 2011, 12:32:39 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) silence compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r11920 r11921  
    469469
    470470static void
    471 dummy_read(void *closure, const unsigned char *buf, size_t buflen)
     471dummy_read( void * closure UNUSED, const unsigned char *buf UNUSED, size_t buflen UNUSED )
    472472{
    473473    /* This cannot happen, as far as I'm aware. */
    474     tr_nerr("UTP", "On_read called on closed socket");
    475 
    476 }
    477 
    478 static void
    479 dummy_write(void *closure, unsigned char *buf, size_t buflen)
     474    tr_nerr( "UTP", "On_read called on closed socket" );
     475
     476}
     477
     478static void
     479dummy_write(void * closure UNUSED, unsigned char *buf, size_t buflen)
    480480{
    481481    /* This can very well happen if we've shut down a peer connection that
    482482       had unflushed buffers.  Complain and send zeroes. */
    483     tr_ndbg("UTP", "On_write called on closed socket");
    484     memset(buf, 0, buflen);
     483    tr_ndbg( "UTP", "On_write called on closed socket" );
     484    memset( buf, 0, buflen );
    485485}
    486486
    487487static size_t
    488 dummy_get_rb_size(void *closure)
     488dummy_get_rb_size( void * closure UNUSED )
    489489{
    490490    return 0;
     
    492492
    493493static void
    494 dummy_on_state_change(void *closure, int state)
     494dummy_on_state_change(void * closure UNUSED, int state UNUSED )
    495495{
    496496    return;
     
    498498
    499499static void
    500 dummy_on_error(void *closure, int errcode)
     500dummy_on_error( void * closure UNUSED, int errcode UNUSED )
    501501{
    502502    return;
     
    504504
    505505static void
    506 dummy_on_overhead(void *closure, bool send, size_t count, int type)
     506dummy_on_overhead( void *closure UNUSED, bool send UNUSED, size_t count UNUSED, int type UNUSED )
    507507{
    508508    return;
Note: See TracChangeset for help on using the changeset viewer.