]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: update remaining function to return the error code
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 May 2025 17:58:11 +0000 (18:58 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 20 May 2025 02:51:44 +0000 (21:51 -0500)
commit5cd2a2a4874154bab15de6ad8be85d0571dfc2b8
tree3f86f0ac01a18fb8e3891481cae06ca2a3770447
parenta0fb3098ccbc2d19db0d839086137f8fe3868bfd
libkmod: update remaining function to return the error code

Rework the function signature and return the error code instead of the
stripped module. Thus we no longer explicitly set errno.

v2:
 - kmod_file_open() - use _cleanup_free_, return errno instead of ENOMEM

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-file.c
libkmod/libkmod-internal.h
libkmod/libkmod-module.c