tbf: Constify some methods
Change-Id: I2681a98583f4fb26a274c75d0279084239f76a68
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 74c790c..35bd81d 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -544,7 +544,7 @@
}
int gprs_rlcmac_tbf::check_polling(uint32_t fn, uint8_t ts,
- uint32_t *poll_fn_, unsigned int *rrbp_)
+ uint32_t *poll_fn_, unsigned int *rrbp_) const
{
uint32_t new_poll_fn = next_fn(fn, 13);
@@ -1066,7 +1066,7 @@
return 0;
}
-const char *tbf_name(gprs_rlcmac_tbf *tbf)
+const char *tbf_name(const gprs_rlcmac_tbf *tbf)
{
return tbf ? tbf->name() : "(no TBF)";
}