From 267b9c784eee35ad345d316b0f9ba7c405adec64 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 14 Mar 2022 00:48:15 -0400 Subject: Rename 'count' argument to 'entry_size' --- src/bank.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/bank.c b/src/bank.c index f9f540d..735f479 100644 --- a/src/bank.c +++ b/src/bank.c @@ -51,10 +51,10 @@ static inline xas_bank_entry *entry_by_index(xas_bank *bank, ssize_t xas_bank_record(xas_bank *bank, xas_audio_stream *source, size_t entry_index, - size_t count) { + size_t entry_size) { xas_bank_entry *entry = entry_by_index(bank, entry_index); - size_t left = count, + size_t left = entry_size, index_o = 0; if (!xas_audio_format_eq(bank->format, source->format)) { @@ -63,13 +63,13 @@ ssize_t xas_bank_record(xas_bank *bank, goto error_invalid_format; } - if (count > bank->entry_size) { - count = bank->entry_size; + if (entry_size > bank->entry_size) { + entry_size = bank->entry_size; } while (left) { ssize_t readlen, - amount = left > count? count: left; + amount = left > entry_size? entry_size: left; void *buf; -- cgit v1.2.3