aboutsummaryrefslogtreecommitdiffstats
path: root/src/llc.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-16 10:18:42 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-22 10:39:06 +0200
commit1e50a3dadef7823b6f50bd387f84f324029a217d (patch)
tree1a45f77b8f629a6a984a8d58721030b7a38987c4 /src/llc.cpp
parent70b96aa232bd9784a94247bf7b193cb2147ada9d (diff)
llc: Make timeval arguments const
Some struct timeval pointer arguments do not have the const qualifier, albeit the methods do not write to the structures. The next commit will change related pointers to const, so this commit provides the required constness. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/llc.cpp')
-rw-r--r--src/llc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/llc.cpp b/src/llc.cpp
index 3388db1f..8930d2c8 100644
--- a/src/llc.cpp
+++ b/src/llc.cpp
@@ -175,7 +175,8 @@ void gprs_llc_queue::calc_pdu_lifetime(BTS *bts, const uint16_t pdu_delay_csec,
timeradd(&now, &csec, tv);
}
-bool gprs_llc_queue::is_frame_expired(struct timeval *tv_now, struct timeval *tv)
+bool gprs_llc_queue::is_frame_expired(const struct timeval *tv_now,
+ const struct timeval *tv)
{
/* Timeout is infinite */
if (tv->tv_sec == 0 && tv->tv_usec == 0)