[pacman-dev] [PATCH 1/3] libalpm: fix a remaining old syntax of RET_ERR() macro

Dan McGee dpmcgee at gmail.com
Mon Aug 15 15:31:52 EDT 2011


On Mon, Aug 15, 2011 at 2:09 PM, Rémy Oudompheng <remy at archlinux.org> wrote:
> It would prevent compilation of pacman on FreeBSD, and possibly other
> systems.
>
> Signed-off-by: Rémy Oudompheng <remy at archlinux.org>
Good catch, thanks.

> ---
>  lib/libalpm/diskspace.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/libalpm/diskspace.c b/lib/libalpm/diskspace.c
> index b28b88a..4e7ffaa 100644
> --- a/lib/libalpm/diskspace.c
> +++ b/lib/libalpm/diskspace.c
> @@ -104,7 +104,7 @@ static alpm_list_t *mount_point_list(alpm_handle_t *handle)
>        }
>
>        for(; entries-- > 0; fsp++) {
> -               CALLOC(mp, 1, sizeof(alpm_mountpoint_t), RET_ERR(ALPM_ERR_MEMORY, NULL));
> +               CALLOC(mp, 1, sizeof(alpm_mountpoint_t), RET_ERR(handle, ALPM_ERR_MEMORY, NULL));
>                mp->mount_dir = strdup(fsp->f_mntonname);
>                mp->mount_dir_len = strlen(mp->mount_dir);
>                memcpy(&(mp->fsp), fsp, sizeof(FSSTATSTYPE));
> --
> 1.7.3.5
>
>
>


More information about the pacman-dev mailing list