]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: use array for dependency output
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 18 Oct 2024 15:23:17 +0000 (17:23 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 22 Oct 2024 16:52:48 +0000 (11:52 -0500)
commit191459b9ce683b9c9b3f2375b4687758c78251e8
treee0fc386b9cd320ce3b0135c35fc812fccc1cd306
parent1b459ab9a5d8f8a22d5b2cd8d3f6317d3f35813d
depmod: use array for dependency output

The shared/array implementation is already used within depmod, but not
for dependency output. Adding it here 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