summaryrefslogtreecommitdiffstats
path: root/src/ustar.h
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-30 21:25:55 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-30 21:25:55 (EDT)
commitd1383915089af484e68ae5ce03f5c20e78ad0726 (patch)
tree38d0f4ca5ee490df007e5d35856b22b269b91712 /src/ustar.h
parent4cc0d685f1d741e84f126ca1eb91f16b602d023d (diff)
ustar: Move SOURCE_DATE_EPOCH code to opk/write
This way it runs only once (without resorting to static variables) across all headers in all ustar archives. Also, opk/write now prints an informative error message.
Diffstat (limited to 'src/ustar.h')
-rw-r--r--src/ustar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ustar.h b/src/ustar.h
index 679f8ae..4c51070 100644
--- a/src/ustar.h
+++ b/src/ustar.h
@@ -90,7 +90,7 @@ int
opkg_opk_ustar_write_header(struct opkg_opk_ustar *ustar,
struct opkg_opk_dirent *dirent, uint16_t mode,
uid_t uid, const char *uname, gid_t gid, const char *gname,
- uint64_t size, char type, const char *linkname);
+ uint64_t size, int64_t mtime, char type, const char *linkname);
int
opkg_opk_ustar_get_buffer(struct opkg_opk_ustar *ustar, char **buffer,