summaryrefslogtreecommitdiff
path: root/cesar/mac/common
diff options
context:
space:
mode:
authorYacine Belkadi2012-10-08 09:49:59 +0200
committerYacine Belkadi2012-10-18 09:41:32 +0200
commitcb86bac2abe5a53f1ec73511919c0ddf89e4cfcd (patch)
tree363f54d9996388d87541b6abd56ffab958f7c2fe /cesar/mac/common
parenta5f1a99d24f531631582f906446bd796c926df45 (diff)
cesar/lib/list: rename some functions, closes #3429
To have (hopefully) more intuitive names, rename: list_shift() to list_pop_front() list_unshift() to list_push_front() list_unshift_range() to list_push_front_range() To keep things consistent after the above renaming, rename: list_pop() to list_pop_back() list_push() to list_push_back() list_push_range() to list_push_back_range()
Diffstat (limited to 'cesar/mac/common')
-rw-r--r--cesar/mac/common/src/store.c2
-rw-r--r--cesar/mac/common/src/tonemap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cesar/mac/common/src/store.c b/cesar/mac/common/src/store.c
index 2c1a0a6ad4..9f4634ce8e 100644
--- a/cesar/mac/common/src/store.c
+++ b/cesar/mac/common/src/store.c
@@ -266,7 +266,7 @@ mac_store_mfs_unassociated_add_ (mac_store_t *ctx, bool tx, bool bcast,
mfs_tx_init_unassociated (&mfs->tx, bcast, mme, lid, tei);
blk_addref_ (mfs __fl);
arch_dsr_lock ();
- list_push (&ctx->unassociated, &mfs->common.store_unassociated_link);
+ list_push_back (&ctx->unassociated, &mfs->common.store_unassociated_link);
arch_dsr_unlock ();
return mfs;
}
diff --git a/cesar/mac/common/src/tonemap.c b/cesar/mac/common/src/tonemap.c
index 0cde1fdbd3..109eccd7ef 100644
--- a/cesar/mac/common/src/tonemap.c
+++ b/cesar/mac/common/src/tonemap.c
@@ -146,7 +146,7 @@ tonemap_release (tonemaps_t *tms, u8 tmi,
/* Put the tonemap in the release list and get it out of the
* station set. */
- list_push (tm_release_list, &tm->release_link);
+ list_push_back (tm_release_list, &tm->release_link);
tm->released = TONEMAP_RELEASE_TIMER_S;
tms->tm[tmi] = NULL;
}