From: Lucas De Marchi Date: Tue, 11 May 2021 16:47:09 +0000 (-0700) Subject: Fix return value doc for kmod_module_get_info() X-Git-Tag: v29~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=729f0f685336e7aa91d1a0236a8f09804d261b90;p=thirdparty%2Fkmod.git Fix return value doc for kmod_module_get_info() We don't return 0 on success, we return the number of elements we added to the list. --- diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index 76a6dc30..b6320cc8 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -2277,7 +2277,7 @@ list_error: * * After use, free the @list by calling kmod_module_info_free_list(). * - * Returns: 0 on success or < 0 otherwise. + * Returns: number of entries in @list on success or < 0 otherwise. */ KMOD_EXPORT int kmod_module_get_info(const struct kmod_module *mod, struct kmod_list **list) {