zip: rename modts field to mtime
This brings it more in line with other structs with this exact same data type and usage. Change-Id: I5fe8564750ef28ccd0b12efedca2e6958369f712
This commit is contained in:
parent
6c084ac3ea
commit
a1bcca645b
|
@ -305,7 +305,7 @@ static int zip_read_cd(struct zip* z, bool use_cb) {
|
|||
|
||||
args->entry = i + 1;
|
||||
args->file_size = cd->uncompressed_size;
|
||||
args->modts = dostime_mktime(letoh16(cdd->date), letoh16(cdd->time));
|
||||
args->mtime = dostime_mktime(letoh16(cdd->date), letoh16(cdd->time));
|
||||
|
||||
memcpy(lf->name, mem, name_length);
|
||||
lf->name[name_length] = '\0';
|
||||
|
@ -426,7 +426,7 @@ static int zip_read_entry(struct zip* z, uint16_t i, void* mem, uint32_t mem_siz
|
|||
|
||||
args->entry = i + 1;
|
||||
args->file_size = lf->uncompressed_size;
|
||||
args->modts = dostime_mktime(lf->date, lf->time);
|
||||
args->mtime = dostime_mktime(lf->date, lf->time);
|
||||
args->block = NULL;
|
||||
args->block_size = 0;
|
||||
args->read_size = 0;
|
||||
|
|
|
@ -40,7 +40,7 @@ struct zip_args {
|
|||
uint16_t entries;
|
||||
char* name;
|
||||
uint32_t file_size;
|
||||
time_t modts;
|
||||
time_t mtime;
|
||||
void* block;
|
||||
uint32_t block_size;
|
||||
uint32_t read_size;
|
||||
|
|
Loading…
Reference in New Issue