summaryrefslogtreecommitdiffstats
path: root/src/ustar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ustar.c')
-rw-r--r--src/ustar.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ustar.c b/src/ustar.c
index 69071c7..4805880 100644
--- a/src/ustar.c
+++ b/src/ustar.c
@@ -82,7 +82,6 @@ _opkg_opk_ustar_next(struct opkg_opk_ustar *ustar,
}
memset(record, 0, 512);
if (memcmp(header, record, 512) == 0) {
- /* TODO: End gzip stream */
return OPKG_OPK_END;
}
if (memcmp(header->magic, "ustar", strlen("ustar")) != 0) {
@@ -192,3 +191,9 @@ opkg_opk_ustar_read(struct opkg_opk_ustar *ustar, char *buffer, size_t *size)
}
return OPKG_OPK_OK;
}
+
+void
+opkg_opk_ustar_free(struct opkg_opk_ustar *ustar)
+{
+ free(ustar);
+}