]> git.ipfire.org Git - thirdparty/glibc.git/commit
alloc_buffer: Return unqualified pointer type in alloc_buffer_next
authorFlorian Weimer <fweimer@redhat.com>
Thu, 11 Apr 2019 07:43:16 +0000 (09:43 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 11 Apr 2019 07:43:17 +0000 (09:43 +0200)
commit32d85c116dd07b25f58b24204e7b05489f06fed4
treef4ab2240889915cc7d912f98e0b69df701cf40e0
parent221710af7ead55942e24f225b18c81dbe07ab08f
alloc_buffer: Return unqualified pointer type in alloc_buffer_next

alloc_buffer_next is useful for peeking to the remaining part of the
buffer and update it, with subsequent allocation (once the length
is known) using alloc_buffer_alloc_bytes.  This is not as robust
as the other interfaces, but it allows using alloc_buffer with
string-writing interfaces such as snprintf and ns_name_ntop.
ChangeLog
include/alloc_buffer.h