Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 7cfd6d6a..aa61a05e 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -193,17 +193,17 @@ pmpkg_t *pkg_load(char *pkgfile)
};
if(pkgfile == NULL) {
- PM_RET_ERR(PM_ERR_WRONG_ARGS, NULL);
+ RET_ERR(PM_ERR_WRONG_ARGS, NULL);
}
if(tar_open(&tar, pkgfile, &gztype, O_RDONLY, 0, TAR_GNU) == -1) {
- PM_RET_ERR(PM_ERR_NOT_A_FILE, NULL);
+ RET_ERR(PM_ERR_NOT_A_FILE, NULL);
}
info = pkg_new();
if(info == NULL) {
tar_close(tar);
- PM_RET_ERR(PM_ERR_MEMORY, NULL);
+ RET_ERR(PM_ERR_MEMORY, NULL);
}
for(i = 0; !th_read(tar); i++) {