summaryrefslogtreecommitdiff
path: root/src/lib/shm_rdrbuff.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-09-02 11:12:53 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-09-02 11:12:53 +0200
commit0325130c969c32f8802122f609c0dd225e5c1a1f (patch)
treea97accc000af65951fd275ce409bd72fbc9ce5a9 /src/lib/shm_rdrbuff.c
parentfe197a226c0a7755f19a2956294ba435701a42ea (diff)
parent9f4b673a03b66a53e3b044b26d0669d2e800cf50 (diff)
downloadouroboros-0325130c969c32f8802122f609c0dd225e5c1a1f.tar.gz
ouroboros-0325130c969c32f8802122f609c0dd225e5c1a1f.zip
Merged in sandervrijders/ouroboros/be-alloc-flow (pull request #235)
lib: Change rdrbuff API to use correct types
Diffstat (limited to 'src/lib/shm_rdrbuff.c')
-rw-r--r--src/lib/shm_rdrbuff.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/shm_rdrbuff.c b/src/lib/shm_rdrbuff.c
index 96f54bd5..93a889ce 100644
--- a/src/lib/shm_rdrbuff.c
+++ b/src/lib/shm_rdrbuff.c
@@ -691,8 +691,8 @@ int shm_rdrbuff_remove(struct shm_rdrbuff * rdrb, ssize_t idx)
}
uint8_t * shm_du_buff_head_alloc(struct shm_rdrbuff * rdrb,
- int idx,
- ssize_t size)
+ ssize_t idx,
+ size_t size)
{
struct shm_du_buff * sdb;
uint8_t * buf;
@@ -729,8 +729,8 @@ uint8_t * shm_du_buff_head_alloc(struct shm_rdrbuff * rdrb,
}
uint8_t * shm_du_buff_tail_alloc(struct shm_rdrbuff * rdrb,
- int idx,
- ssize_t size)
+ ssize_t idx,
+ size_t size)
{
struct shm_du_buff * sdb;
uint8_t * buf;
@@ -767,8 +767,8 @@ uint8_t * shm_du_buff_tail_alloc(struct shm_rdrbuff * rdrb,
}
int shm_du_buff_head_release(struct shm_rdrbuff * rdrb,
- int idx,
- ssize_t size)
+ ssize_t idx,
+ size_t size)
{
struct shm_du_buff * sdb;
@@ -803,8 +803,8 @@ int shm_du_buff_head_release(struct shm_rdrbuff * rdrb,
}
int shm_du_buff_tail_release(struct shm_rdrbuff * rdrb,
- int idx,
- ssize_t size)
+ ssize_t idx,
+ size_t size)
{
struct shm_du_buff * sdb;