From 9b0f7bbe7230f42c8593c62cd73c554bc652fe67 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 2 Jan 2015 00:51:09 +0000 Subject: [PATCH] move function from header to .cpp file --- include/libtorrent/receive_buffer.hpp | 5 ----- src/receive_buffer.cpp | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/libtorrent/receive_buffer.hpp b/include/libtorrent/receive_buffer.hpp index 4aeac94bd..a909c75c2 100644 --- a/include/libtorrent/receive_buffer.hpp +++ b/include/libtorrent/receive_buffer.hpp @@ -40,11 +40,6 @@ POSSIBILITY OF SUCH DAMAGE. namespace libtorrent { -inline int round_up8(int v) -{ - return ((v & 7) == 0) ? v : v + (8 - (v & 7)); -} - struct receive_buffer { friend struct crypto_receive_buffer; diff --git a/src/receive_buffer.cpp b/src/receive_buffer.cpp index 28584bc76..4d286d2e0 100644 --- a/src/receive_buffer.cpp +++ b/src/receive_buffer.cpp @@ -34,6 +34,11 @@ POSSIBILITY OF SUCH DAMAGE. namespace libtorrent { +int round_up8(int v) +{ + return ((v & 7) == 0) ? v : v + (8 - (v & 7)); +} + int receive_buffer::max_receive() { int max = packet_bytes_remaining();