From 6837c5ac80e3624c6dc3a82d03e50d68b2f5a989 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 26 Oct 2026 17:13:36 +0100 Subject: Second run of making variable and function names more readable, urlencoder now matches overall naming scheme --- ot_sync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ot_sync.c') diff --git a/ot_sync.c b/ot_sync.c index dc71ddd..5527c94 100644 --- a/ot_sync.c +++ b/ot_sync.c @@ -77,7 +77,7 @@ static void sync_make(size_t *iovec_entries, struct iovec **iovector) { /* Setup return vector... */ *iovec_entries = 0; *iovector = NULL; - if (!(r = iovec_increase(iovec_entries, iovector, OT_SYNC_CHUNK_SIZE))) + if (!(r = iovec_new_chunk(iovec_entries, iovector, OT_SYNC_CHUNK_SIZE))) return; /* ... and pointer to end of current output buffer. @@ -105,7 +105,7 @@ static void sync_make(size_t *iovec_entries, struct iovec **iovector) { /* Allocate a fresh output buffer at the end of our buffers list release bucket and return, if that fails */ - if (!(r = iovec_fix_increase_or_free(iovec_entries, iovector, r, OT_SYNC_CHUNK_SIZE))) + if (!(r = iovec_next_chunk(iovec_entries, iovector, r, OT_SYNC_CHUNK_SIZE))) return mutex_bucket_unlock(bucket); /* Adjust new end of output buffer */ @@ -131,7 +131,7 @@ static void sync_make(size_t *iovec_entries, struct iovec **iovector) { *r++ = 'e'; /* Release unused memory in current output buffer */ - iovec_fixlast(iovec_entries, iovector, r); + iovec_trim_last(iovec_entries, iovector, r); } /* This is the entry point into this worker thread -- cgit v1.3