]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools: use bool instead of int for log_open
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 18 Feb 2025 21:20:46 +0000 (22:20 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 18 Feb 2025 21:42:17 +0000 (15:42 -0600)
commit378fd27803734acc8ed7ce3222feed430b3f945f
treec0f601ba6ee9096e195d11b6566679fc277dd4f8
parent3ff564c3caa757a19cfb7794d78d23751b4ce95f
tools: use bool instead of int for log_open

Since log_open takes a booln as argument, turn use_syslog into a
bool instead of using an int. Shrinks binary size with GCC and from
C point of view, this makes the code cleaner.

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