[PATCH] alloc_buffer: Return unqualified pointer type in alloc_buffer_next
Florian Weimer
fweimer@redhat.com
Mon Apr 8 11:18:00 GMT 2019
* Florian Weimer:
> 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.
>
> 2019-03-08 Florian Weimer <fweimer@redhat.com>
>
> * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
> comment.
> (alloc_buffer_next): Change return type to non-const.
Ping? <https://sourceware.org/ml/libc-alpha/2019-03/msg00179.html>
Thanks,
Florian
More information about the Libc-alpha
mailing list