diff options
author | Alex Chronopoulos <[email protected]> | 2016-03-07 13:35:35 +0200 |
---|---|---|
committer | Alex Chronopoulos <[email protected]> | 2016-03-08 13:09:03 +0200 |
commit | 91200251d997f34b3fad222c29dcbca877bcaff6 (patch) | |
tree | 9e5d07997ddf248ea13abab04bc32b97ddb208f8 /src/cubeb_ring_array.h | |
parent | 6b2c610ec860d1859d206d66327c952e9d4b0316 (diff) | |
download | cubeb-91200251d997f34b3fad222c29dcbca877bcaff6.tar.gz cubeb-91200251d997f34b3fad222c29dcbca877bcaff6.zip |
Formating, typo and local var rebaming.
Diffstat (limited to 'src/cubeb_ring_array.h')
-rw-r--r-- | src/cubeb_ring_array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeb_ring_array.h b/src/cubeb_ring_array.h index 93498ec..adf96a2 100644 --- a/src/cubeb_ring_array.h +++ b/src/cubeb_ring_array.h @@ -13,7 +13,7 @@ extern "C" { #endif /** Ring array of pointers is used to hold buffers. In case that - asynchronus producer/consumer callbacks do not arrive in a + asynchronous producer/consumer callbacks do not arrive in a repeated order the ring array stores the buffers and fetch them in the correct order. */ #define RING_ARRAY_CAPACITY 8 @@ -41,7 +41,7 @@ ring_array_init(ring_array * ra) pthread_mutexattr_init(&attr); pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_DEFAULT); int ret = pthread_mutex_init(&ra->mutex, &attr); - assert(0 == ret); + assert(ret == 0); pthread_mutexattr_destroy(&attr); assert(ra->pointer_array[0] == NULL); |