diff options
author | Sander Vrijders <[email protected]> | 2016-08-03 13:25:12 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-08-03 13:25:12 +0200 |
commit | 44b55f0b03ffc6aff4f1c290b5687d5ac95ddbf9 (patch) | |
tree | 6e80ca15368a75908ba4053ceb07c25269ae786c /src/lib/shm_du_map.c | |
parent | d409fd569683d8f0e8c8f65d4820087dbf7c0786 (diff) | |
parent | ca494922f3815077efbcd28da3748df38c8a6961 (diff) | |
download | ouroboros-44b55f0b03ffc6aff4f1c290b5687d5ac95ddbf9.tar.gz ouroboros-44b55f0b03ffc6aff4f1c290b5687d5ac95ddbf9.zip |
Merged in dstaesse/ouroboros/be-select (pull request #184)
select() like call
Diffstat (limited to 'src/lib/shm_du_map.c')
-rw-r--r-- | src/lib/shm_du_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c index 6dc4a1bd..b090bb74 100644 --- a/src/lib/shm_du_map.c +++ b/src/lib/shm_du_map.c @@ -416,7 +416,7 @@ ssize_t shm_du_map_write(struct shm_du_map * dum, int sz = size + sizeof *sdb; #endif uint8_t * write_pos; - ssize_t index = -1; + ssize_t idx = -1; if (dum == NULL || data == NULL) { LOG_DBGF("Bogus input, bugging out."); @@ -475,7 +475,7 @@ ssize_t shm_du_map_write(struct shm_du_map * dum, memcpy(write_pos, data, len); - index = *dum->ptr_head; + idx = *dum->ptr_head; #ifdef SHM_DU_MAP_MULTI_BLOCK *dum->ptr_head = (*dum->ptr_head + blocks) & (SHM_BLOCKS_IN_MAP - 1); #else @@ -483,7 +483,7 @@ ssize_t shm_du_map_write(struct shm_du_map * dum, #endif pthread_mutex_unlock(dum->shm_mutex); - return index; + return idx; } int shm_du_map_read(uint8_t ** dst, |