diff options
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r-- | firmware/drivers/fat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 28d4eb1987..0c02c8224f 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -2276,8 +2276,8 @@ fat_error: | |||
2276 | return rc; | 2276 | return rc; |
2277 | } | 2277 | } |
2278 | 2278 | ||
2279 | int fat_utime(struct fat_file *parent, struct fat_file *file, | 2279 | int fat_modtime(struct fat_file *parent, struct fat_file *file, |
2280 | const struct utimbuf *times) | 2280 | time_t modtime) |
2281 | { | 2281 | { |
2282 | struct bpb * const fat_bpb = FAT_BPB(parent->volume); | 2282 | struct bpb * const fat_bpb = FAT_BPB(parent->volume); |
2283 | 2283 | ||
@@ -2297,7 +2297,7 @@ int fat_utime(struct fat_file *parent, struct fat_file *file, | |||
2297 | 2297 | ||
2298 | uint16_t date; | 2298 | uint16_t date; |
2299 | uint16_t time; | 2299 | uint16_t time; |
2300 | dostime_localtime(times->modtime, &date, &time); | 2300 | dostime_localtime(modtime, &date, &time); |
2301 | 2301 | ||
2302 | ent->wrttime = htole16(time); | 2302 | ent->wrttime = htole16(time); |
2303 | ent->wrtdate = htole16(date); | 2303 | ent->wrtdate = htole16(date); |