diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-13 17:14:42 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-13 17:14:42 +0100 |
commit | 32f9a59ab42f9c37908d3d4a9db341583ab516ac (patch) | |
tree | 1d134b8f56ee469759ab0c3df418d5d52dd1fe04 /src/llc.cpp | |
parent | e23102602c94dc7fdd7cc6d383e7f6c576aa01ed (diff) |
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.
Diffstat (limited to 'src/llc.cpp')
-rw-r--r-- | src/llc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |