]> git.ipfire.org Git - thirdparty/kmod.git/commit
strbuf: Re-use buf_realloc()
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 12 Nov 2024 15:07:05 +0000 (09:07 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 17 Nov 2024 21:35:13 +0000 (15:35 -0600)
commitc83ce183f0a9ccab4dd3d9f6c8157aa222c55261
treeeb5c4f32aeb9ed260532a09b5f90dff21265bcc5
parentb7e2c1eb58ad77beb938743d6a6b57b0f54c78cf
strbuf: Re-use buf_realloc()

Let the realloc happen in only one place, so we can change its behavior
in future.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/239
shared/strbuf.c