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

Dan McGee dpmcgee at gmail.com
Tue Jan 14 08:09:12 EST 2014


On Mon, Jan 13, 2014 at 10:01 PM, Andrew Gregory <andrew.gregory.8 at gmail.com
> wrote:

> 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>
> ---
>
This snuck in on my last patch set, whoops.


>  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