]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Fix return value doc for kmod_module_get_info()
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 11 May 2021 16:47:09 +0000 (09:47 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 11 May 2021 16:47:09 +0000 (09:47 -0700)
We don't return 0 on success, we return the number of elements we added
to the list.

libkmod/libkmod-module.c

index 76a6dc30930f7195cd486aef109ca8683112cb2e..b6320cc87e807a955d5a4e2b306f3c6c1934f9d6 100644 (file)
@@ -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)
 {