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 04-09-2011, 11:38 AM
Rémy Oudompheng
 
Default libalpm: set pm_errno correctly in alpm_trans_get_flags()

Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
---
Spotted while working on pyalpm.

On branch "maint"

lib/libalpm/trans.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index 4b29f9a..08856d0 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -465,8 +465,8 @@ cleanup:
int SYMEXPORT alpm_trans_get_flags()
{
/* Sanity checks */
- ASSERT(handle != NULL, return(-1));
- ASSERT(handle->trans != NULL, return(-1));
+ ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
+ ASSERT(handle->trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));

return handle->trans->flags;
}
--
1.7.4.4
 

Thread Tools




All times are GMT. The time now is 01:01 AM.

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