summaryrefslogtreecommitdiffstats
path: root/src/opk
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-05-07 01:33:35 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-05-07 01:33:35 (EDT)
commiteb039d67a791638cf000ccec889bdc9026a07fa7 (patch)
tree916cf45f607372b69e2f295ce6899148517ce226 /src/opk
parent197411623bf69b3046a25ed44d63fc7e245ac7e3 (diff)
ustar: Make mtime unsigned
Diffstat (limited to 'src/opk')
-rw-r--r--src/opk/read.c2
-rw-r--r--src/opk/write.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/opk/read.c b/src/opk/read.c
index 97187dc..0a7f3c1 100644
--- a/src/opk/read.c
+++ b/src/opk/read.c
@@ -414,7 +414,7 @@ _opkg_opk_opk_read_data(struct opkg_opk_opk *opk)
if (member->mode & 01000) mode[8] = 't';
mode[9] = '\0';
strftime(mtime, sizeof(mtime), "%Y-%m-%d %H:%M:%S",
- localtime(&member->mtime));
+ localtime((const time_t *) &member->mtime));
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
if (printf(fmt, member->type, mode,
diff --git a/src/opk/write.c b/src/opk/write.c
index 93ddc74..5ddd502 100644
--- a/src/opk/write.c
+++ b/src/opk/write.c
@@ -43,7 +43,7 @@ _opkg_opk_opk_write_file(void *user_data, size_t size)
}
static int
-_opkg_opk_opk_source_date_epoch(int64_t *mtime)
+_opkg_opk_opk_source_date_epoch(uint64_t *mtime)
{
char *env;
char *end;
@@ -63,7 +63,7 @@ int
opkg_opk_opk_write(struct opkg_opk_opk *opk, const char *file_name)
{
int ret;
- int64_t mtime;
+ uint64_t mtime;
struct opkg_opk_dirent dirent;
char *buffer;
size_t size;