]> granicus.if.org Git - transmission/commitdiff
(trunk libT) fix compiler warning: "peer-io.h:282: warning: inlining failed in call...
authorJordan Lee <jordan@transmissionbt.com>
Wed, 9 Feb 2011 02:35:16 +0000 (02:35 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 9 Feb 2011 02:35:16 +0000 (02:35 +0000)
libtransmission/peer-io.c
libtransmission/peer-io.h

index 6eccd57cd28bdb645ef64b1c67ae79e5a5ffe17f..7ca67984e2b7f26ee8324d5aff756a5d5bccc405 100644 (file)
@@ -815,6 +815,12 @@ tr_peerIoWriteBytes( tr_peerIo * io, const void * bytes, size_t byteCount, tr_bo
 ****
 ***/
 
+void
+evbuffer_add_uint8( struct evbuffer * outbuf, uint8_t byte )
+{
+    evbuffer_add( outbuf, &byte, 1 );
+}
+
 void
 evbuffer_add_uint16( struct evbuffer * outbuf, uint16_t addme_hs )
 {
index d9d95d2517db7d0c2c5758c9d21fc67906ebfe41..e1755822084951b6917f18f690cf281b5aad5334 100644 (file)
@@ -278,12 +278,7 @@ tr_peerIoIsEncrypted( const tr_peerIo * io )
     return ( io != NULL ) && ( io->encryptionMode == PEER_ENCRYPTION_RC4 );
 }
 
-static inline void
-evbuffer_add_uint8( struct evbuffer * outbuf, uint8_t byte )
-{
-    evbuffer_add( outbuf, &byte, 1 );
-}
-
+void evbuffer_add_uint8 ( struct evbuffer * outbuf, uint8_t byte );
 void evbuffer_add_uint16( struct evbuffer * outbuf, uint16_t hs );
 void evbuffer_add_uint32( struct evbuffer * outbuf, uint32_t hl );