summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-09-01 17:25:53 +0200
committerSander Vrijders <[email protected]>2016-09-01 17:27:21 +0200
commit9f4b673a03b66a53e3b044b26d0669d2e800cf50 (patch)
treea97accc000af65951fd275ce409bd72fbc9ce5a9 /include
parentfe197a226c0a7755f19a2956294ba435701a42ea (diff)
downloadouroboros-9f4b673a03b66a53e3b044b26d0669d2e800cf50.tar.gz
ouroboros-9f4b673a03b66a53e3b044b26d0669d2e800cf50.zip
lib: Change rdrbuff API to use correct types
The head and tail alloc and release operations were taking an int to identify the idx instead of a ssize_t. The size was a ssize_t instead of a size_t.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/shm_rdrbuff.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/ouroboros/shm_rdrbuff.h b/include/ouroboros/shm_rdrbuff.h
index 09256c56..6cdaa7bf 100644
--- a/include/ouroboros/shm_rdrbuff.h
+++ b/include/ouroboros/shm_rdrbuff.h
@@ -67,18 +67,18 @@ int shm_rdrbuff_remove(struct shm_rdrbuff * rdrb,
uint8_t * shm_du_buff_head_alloc(struct shm_rdrbuff * rdrb,
- int idx,
- ssize_t size);
+ ssize_t idx,
+ size_t size);
uint8_t * shm_du_buff_tail_alloc(struct shm_rdrbuff * rdrb,
- int idx,
- ssize_t size);
+ ssize_t idx,
+ size_t size);
int shm_du_buff_head_release(struct shm_rdrbuff * rdrb,
- int idx,
- ssize_t size);
+ ssize_t idx,
+ size_t size);
int shm_du_buff_tail_release(struct shm_rdrbuff * rdrb,
- int idx,
- ssize_t size);
+ ssize_t idx,
+ size_t size);
#endif /* OUROBOROS_SHM_RDRBUFF_H */