From 32f9a59ab42f9c37908d3d4a9db341583ab516ac Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 13 Nov 2013 17:14:42 +0100 Subject: llc: Make the index 'private' by appending a m_ to it. At some point in the future we can start using the private/protected keywords in this struct. --- src/llc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/llc.cpp') diff --git a/src/llc.cpp b/src/llc.cpp index 3a50bc78..2997ec14 100644 --- a/src/llc.cpp +++ b/src/llc.cpp @@ -31,13 +31,13 @@ extern "C" { /* reset LLC frame */ void gprs_llc::reset() { - index = 0; + m_index = 0; m_length = 0; } void gprs_llc::reset_frame_space() { - index = 0; + m_index = 0; } void gprs_llc::enqueue(struct msgb *llc_msg) @@ -48,14 +48,14 @@ void gprs_llc::enqueue(struct msgb *llc_msg) void gprs_llc::put_frame(const uint8_t *data, size_t len) { /* only put frames when we are empty */ - OSMO_ASSERT(index == 0 && m_length == 0); + OSMO_ASSERT(m_index == 0 && m_length == 0); append_frame(data, len); } void gprs_llc::append_frame(const uint8_t *data, size_t len) { /* TODO: bounds check */ - memcpy(frame + index, data, len); + memcpy(frame + m_index, data, len); m_length += len; } -- cgit v1.2.3