]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: return the errno from kmod_builtin_info_init()
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2025 13:13:39 +0000 (14:13 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 20 May 2025 02:51:43 +0000 (21:51 -0500)
commite2da6209830a8b252b7f578aafbd2a61db69f42b
treee2295e949e17c754a3d373911bd43bdb43d4838a
parente45e624e05e219223c025ff0edf3529bbdd66b15
libkmod: return the errno from kmod_builtin_info_init()

Change the function signature (bool -> int) and directly return the
error code. Thus we no longer need to overwrite errno.

v2:
 - return false -> return -ENAMETOOLONG

Reference: https://github.com/kmod-project/kmod/issues/244
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/346
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-builtin.c