From 8d38746586794ab2cb21dc47de7c9baf6ec0863d Mon Sep 17 00:00:00 2001 From: morganamilo Date: Mon, 4 Dec 2023 15:33:59 +0000 Subject: [PATCH] libalpm: fix check_pgp_signature docs The function did have these return values a long time ago but now only return 0 or -1. --- lib/libalpm/alpm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index d8439050..e532f3de 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -488,7 +488,7 @@ typedef struct _alpm_siglist_t { * Check the PGP signature for the given package file. * @param pkg the package to check * @param siglist a pointer to storage for signature results - * @return a int value : 0 (valid), 1 (invalid), -1 (an error occurred) + * @return 0 if valid, -1 if an error occurred or signature is invalid */ int alpm_pkg_check_pgp_signature(alpm_pkg_t *pkg, alpm_siglist_t *siglist); @@ -496,7 +496,7 @@ int alpm_pkg_check_pgp_signature(alpm_pkg_t *pkg, alpm_siglist_t *siglist); * Check the PGP signature for the given database. * @param db the database to check * @param siglist a pointer to storage for signature results - * @return a int value : 0 (valid), 1 (invalid), -1 (an error occurred) + * @return 0 if valid, -1 if an error occurred or signature is invalid */ int alpm_db_check_pgp_signature(alpm_db_t *db, alpm_siglist_t *siglist);