Changeset 11857


Ignore:
Timestamp:
Feb 9, 2011, 2:35:16 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) fix compiler warning: "peer-io.h:282: warning: inlining failed in call to ‘evbuffer_add_uint8’: optimizing for size and code size would grow"

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r11856 r11857  
    817817
    818818void
     819evbuffer_add_uint8( struct evbuffer * outbuf, uint8_t byte )
     820{
     821    evbuffer_add( outbuf, &byte, 1 );
     822}
     823
     824void
    819825evbuffer_add_uint16( struct evbuffer * outbuf, uint16_t addme_hs )
    820826{
  • trunk/libtransmission/peer-io.h

    r11709 r11857  
    279279}
    280280
    281 static inline void
    282 evbuffer_add_uint8( struct evbuffer * outbuf, uint8_t byte )
    283 {
    284     evbuffer_add( outbuf, &byte, 1 );
    285 }
    286 
     281void evbuffer_add_uint8 ( struct evbuffer * outbuf, uint8_t byte );
    287282void evbuffer_add_uint16( struct evbuffer * outbuf, uint16_t hs );
    288283void evbuffer_add_uint32( struct evbuffer * outbuf, uint32_t hl );
Note: See TracChangeset for help on using the changeset viewer.