summaryrefslogtreecommitdiffstats
path: root/src/ustar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ustar.c')
-rw-r--r--src/ustar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ustar.c b/src/ustar.c
index 88ae7b6..13e7621 100644
--- a/src/ustar.c
+++ b/src/ustar.c
@@ -334,7 +334,7 @@ opkg_opk_ustar_write_header(struct opkg_opk_ustar *ustar,
sprintf(ustar->header.chksum, "%o", chksum);
if (opkg_opk_gzip_write(ustar->gzip, &ustar->header,
- OPKG_OPK_USTAR_RECORD_SIZE, 0) != OPKG_OPK_OK) {
+ OPKG_OPK_USTAR_RECORD_SIZE) != OPKG_OPK_OK) {
return OPKG_OPK_ERROR;
}
@@ -365,7 +365,7 @@ opkg_opk_ustar_write_data(struct opkg_opk_ustar *ustar, size_t size)
/* Write to gzip stream. */
if (opkg_opk_gzip_write(ustar->gzip, ustar->record,
- OPKG_OPK_USTAR_RECORD_SIZE, 0) != OPKG_OPK_OK) {
+ OPKG_OPK_USTAR_RECORD_SIZE) != OPKG_OPK_OK) {
return OPKG_OPK_ERROR;
}
@@ -378,9 +378,9 @@ opkg_opk_ustar_write_trailer(struct opkg_opk_ustar *ustar)
{
memset(ustar->record, 0, OPKG_OPK_USTAR_RECORD_SIZE);
if (opkg_opk_gzip_write(ustar->gzip, ustar->record,
- OPKG_OPK_USTAR_RECORD_SIZE, 0) != OPKG_OPK_OK ||
+ OPKG_OPK_USTAR_RECORD_SIZE) != OPKG_OPK_OK ||
opkg_opk_gzip_write(ustar->gzip, ustar->record,
- OPKG_OPK_USTAR_RECORD_SIZE, 1) != OPKG_OPK_END)
+ OPKG_OPK_USTAR_RECORD_SIZE) != OPKG_OPK_OK)
{
return OPKG_OPK_ERROR;
}