diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-29 12:21:07 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-29 12:21:07 -0500 |
commit | d3d18a42d2a12f65c51dec34608921cec7b42068 (patch) | |
tree | c723c6a943e32fd5fabfddf9d671014f9e65b961 /lib/libalpm/util.h | |
parent | 9477abc3591905a20acbfe7b8ce7832617d72701 (diff) | |
parent | 287e8d356e8be8ae4af00e34e25d3f6727945952 (diff) | |
download | pacman-d3d18a42d2a12f65c51dec34608921cec7b42068.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'lib/libalpm/util.h')
-rw-r--r-- | lib/libalpm/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 1816e360..eb1cad36 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -59,6 +59,10 @@ #define ASSERT(cond, action) do { if(!(cond)) { action; } } while(0) +#define RET_ERR_VOID(err) do { pm_errno = (err); \ + _alpm_log(PM_LOG_DEBUG, "returning error %d from %s : %s\n", err, __func__, alpm_strerrorlast()); \ + return; } while(0) + #define RET_ERR(err, ret) do { pm_errno = (err); \ _alpm_log(PM_LOG_DEBUG, "returning error %d from %s : %s\n", err, __func__, alpm_strerrorlast()); \ return (ret); } while(0) |