]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Use strbuf for dependency output
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 18 Oct 2024 15:28:36 +0000 (17:28 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 22 Oct 2024 16:52:48 +0000 (11:52 -0500)
commit10c8bb097622f434274bdef4aeb54a77d3176aab
tree2527964b2a1723fefc8f871809d7b7c6778e0abd
parent191459b9ce683b9c9b3f2375b4687758c78251e8
depmod: Use strbuf for dependency output

Use shared/strbuf instead of manually re-implementing its features.
Reduces the amount of custom code in depmod, simplifies auditing,
reduces binary size, and has the nice benefit of slightly faster
runtime due to memory reusage.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/193
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c