]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Convert depmod_modules_search_path() to strbuf
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 12 Nov 2024 20:07:32 +0000 (14:07 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 17 Nov 2024 21:35:13 +0000 (15:35 -0600)
commitd303efe370365ca7725e9626b761c21020409942
tree5cd4aca0904826aca680e4a1472cd231b86cf619
parent14ce34d755f828feb89381777a9170d5839cca61
depmod: Convert depmod_modules_search_path() to strbuf

Replace the scratchbuf usage with corresponding API from strbuf.

depmod_modules_search_path() itself may further be simplified in the
future to share opening the dir with depmod_modules_search_dir(),
but that is left for later.

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
tools/depmod.c