]> git.ipfire.org Git - thirdparty/kmod.git/commit
kmod: use program_invocation_short_name more often
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 19 Feb 2025 18:18:23 +0000 (19:18 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 21 Feb 2025 19:59:03 +0000 (13:59 -0600)
commit3e33ca08816bf1225fce7b2e2eefd331a91fcf22
tree5266461ca39475d0a79894df9e18d507bf0c7930
parent51ba885d5bea5962b10788f0b2a36f806b74a690
kmod: use program_invocation_short_name more often

Remove the explicit basename(argv[0]) calls because we already
rely on program_invocation_short_name even before reaching
these lines. Unifies code and slightly reduces binary size.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/284
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/kmod.c