aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-16 10:07:20 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-01-16 10:07:20 +0100
commita0047996990214c72ab20d7a0614d8790f4b9634 (patch)
tree62b24d93c3eb001e056cb993854cb686fc8ac19e /src
parentb293043e2d7a8205959ddfc31a723427eeffaa55 (diff)
tbf: Use past-tense and call it created_ts
Diffstat (limited to 'src')
-rw-r--r--src/tbf.cpp4
-rw-r--r--src/tbf.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index fa9d2638..cac807ce 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -508,7 +508,7 @@ struct gprs_rlcmac_tbf *tbf_alloc(struct gprs_rlcmac_bts *bts,
if (!tbf)
return NULL;
- tbf->m_create_ts = time(NULL);
+ tbf->m_created_ts = time(NULL);
tbf->bts = bts->bts;
tbf->direction = dir;
tbf->m_tfi = tfi;
@@ -1765,7 +1765,7 @@ void tbf_print_vty_info(struct vty *vty, llist_head *ltbf)
tbf->imsi(), VTY_NEWLINE);
vty_out(vty, " created=%lu state=%08x 1st_TS=%d 1st_cTS=%d ctrl_TS=%d "
"MS_CLASS=%d%s",
- tbf->create_ts(), tbf->state_flags, tbf->first_ts,
+ tbf->created_ts(), tbf->state_flags, tbf->first_ts,
tbf->first_common_ts, tbf->control_ts, tbf->ms_class,
VTY_NEWLINE);
vty_out(vty, " TS_alloc=");
diff --git a/src/tbf.h b/src/tbf.h
index 5c8ec623..c3019607 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -138,7 +138,7 @@ struct gprs_rlcmac_tbf {
uint16_t sns() const;
- time_t create_ts() const;
+ time_t created_ts() const;
/* attempt to make things a bit more fair */
void rotate_in_list();
@@ -227,7 +227,7 @@ struct gprs_rlcmac_tbf {
uint32_t m_tlli;
uint8_t m_tlli_valid;
uint8_t m_tfi;
- time_t m_create_ts;
+ time_t m_created_ts;
/* store IMSI for look-up and PCH retransmission */
char m_imsi[16];
@@ -314,9 +314,9 @@ inline uint16_t gprs_rlcmac_tbf::sns() const
const char *tbf_name(gprs_rlcmac_tbf *tbf);
-inline time_t gprs_rlcmac_tbf::create_ts() const
+inline time_t gprs_rlcmac_tbf::created_ts() const
{
- return m_create_ts;
+ return m_created_ts;
}
#endif