summaryrefslogtreecommitdiff
path: root/src/archive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/archive.c')
-rw-r--r--src/archive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive.c b/src/archive.c
index 279ccb9..47b798b 100644
--- a/src/archive.c
+++ b/src/archive.c
@@ -314,7 +314,7 @@ err:
EVP_MD_CTX_cleanup(&teis.mdctx);
free(pax.ptr);
free(longname.ptr);
- apk_file_info_free(&entry);
+ apk_fileinfo_free(&entry);
return r;
err_nomem:
@@ -480,7 +480,7 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae,
} else {
r = errno;
}
- if (r < 0) {
+ if (r) {
apk_error("Failed to set xattrs on %s: %s",
fn, strerror(r));
return -r;