summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-06 17:05:46 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-06 17:05:46 +0200
commitaa0eac4f93b80537d02123715842d594a8ff3aad (patch)
tree671b0562b1b0f99e5565541315d2aa22e4b13955 /include
parenta4672940dc1effa40d2debf046c98708a831e928 (diff)
downloadouroboros-aa0eac4f93b80537d02123715842d594a8ff3aad.tar.gz
ouroboros-aa0eac4f93b80537d02123715842d594a8ff3aad.zip
lib: Fix shutdown with pending SDUs
The SDU's were not correctly removed upon shutdown, peek should be pop.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/shm_ap_rbuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ouroboros/shm_ap_rbuff.h b/include/ouroboros/shm_ap_rbuff.h
index 89d9876d..dd82c01c 100644
--- a/include/ouroboros/shm_ap_rbuff.h
+++ b/include/ouroboros/shm_ap_rbuff.h
@@ -49,7 +49,7 @@ int shm_ap_rbuff_write(struct shm_ap_rbuff * rb,
struct rb_entry * shm_ap_rbuff_read(struct shm_ap_rbuff * rb);
-int shm_ap_rbuff_peek_idx(struct shm_ap_rbuff * rb);
+int shm_ap_rbuff_pop_idx(struct shm_ap_rbuff * rb);
int shm_ap_rbuff_peek_b(struct shm_ap_rbuff * rb,
bool * set,