[pacman-dev] [PATCH 6/6] package.h: convert scriptlet field to int

Andrew Gregory andrew.gregory.8 at gmail.com
Mon Jan 13 23:01:46 EST 2014


It's a boolean, so signedness doesn't matter, and the public API already
exposes it as an int through alpm_pkg_has_scriptlet().

Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 lib/libalpm/package.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index 228fca3..a972d12 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -131,7 +131,7 @@ struct __alpm_pkg_t {
 	alpm_pkgvalidation_t validation;
 	alpm_pkgfrom_t origin;
 	alpm_pkgreason_t reason;
-	unsigned int scriptlet;
+	int scriptlet;
 };
 
 alpm_file_t *_alpm_file_copy(alpm_file_t *dest, const alpm_file_t *src);
-- 
1.8.5.2



More information about the pacman-dev mailing list