diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-09-01 17:25:53 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-09-01 17:27:21 +0200 |
commit | 9f4b673a03b66a53e3b044b26d0669d2e800cf50 (patch) | |
tree | a97accc000af65951fd275ce409bd72fbc9ce5a9 /src | |
parent | fe197a226c0a7755f19a2956294ba435701a42ea (diff) | |
download | ouroboros-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 'src')
-rw-r--r-- | src/ipcpd/local/main.c | 2 | ||||
-rw-r--r-- | src/lib/shm_rdrbuff.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c index 4fa7e33f..f1b6dd9e 100644 --- a/src/ipcpd/local/main.c +++ b/src/ipcpd/local/main.c @@ -393,7 +393,7 @@ static int ipcp_local_flow_alloc_resp(pid_t n_api, int response) { struct shm_ap_rbuff * rb; - int in_fd = -1;\ + int in_fd = -1; int out_fd = -1; int ret = -1; 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; |