FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 08-15-2011, 07:31 PM
Dan McGee
 
Default libalpm: fix a remaining old syntax of RET_ERR() macro

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

Thread Tools




All times are GMT. The time now is 10:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org