diff options
author | David Robillard <d@drobilla.net> | 2013-12-24 23:36:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-12-24 23:36:51 +0000 |
commit | f13cf8ec7bb57d6b060b7a20d7de8950be9f5eb2 (patch) | |
tree | 62db1d6e50de463cb24b7bda8a163184ea607262 /zix | |
parent | 571b82ec4610b91eb5271507c1d3da7d89516701 (diff) | |
download | zix-f13cf8ec7bb57d6b060b7a20d7de8950be9f5eb2.tar.gz zix-f13cf8ec7bb57d6b060b7a20d7de8950be9f5eb2.tar.bz2 zix-f13cf8ec7bb57d6b060b7a20d7de8950be9f5eb2.zip |
Shorten code.
git-svn-id: http://svn.drobilla.net/zix/trunk@79 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'zix')
-rw-r--r-- | zix/ring.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -165,10 +165,7 @@ peek_internal(const ZixRing* ring, uint32_t r, uint32_t w, uint32_t zix_ring_peek(ZixRing* ring, void* dst, uint32_t size) { - const uint32_t r = ring->read_head; - const uint32_t w = ring->write_head; - - return peek_internal(ring, r, w, size, dst); + return peek_internal(ring, ring->read_head, ring->write_head, size, dst); } uint32_t |