summaryrefslogtreecommitdiff
path: root/firmware/common/dircache.c
diff options
context:
space:
mode:
authorJames Buren <braewoods+rb@braewoods.net>2021-07-03 00:19:58 +0000
committerJames Buren <braewoods+rb@braewoods.net>2021-07-03 00:19:58 +0000
commitc9f2308a1d4401ceefaac47b1ea851530d07e47d (patch)
tree81f75a26707bd8583f5117a7a0febba894787996 /firmware/common/dircache.c
parentd1a92aafff55defefcb8cf8f4b045701325088b2 (diff)
downloadrockbox-c9f2308a1d4401ceefaac47b1ea851530d07e47d.tar.gz
rockbox-c9f2308a1d4401ceefaac47b1ea851530d07e47d.zip
fat: move fattime_mktime to timefuncs
This moves the time conversion function to timefuncs since it has uses on ports that don't use the FAT driver. This function has no dependency on the FAT driver as it is so this should not cause any issues. To reflect this separation the function was renamed to dostime_mktime since it is really for DOS timestamps. The places where it was used have also been updated. Change-Id: Id98b1448d5c6fcda286846e1d2c736db682bfb52
Diffstat (limited to 'firmware/common/dircache.c')
-rw-r--r--firmware/common/dircache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/dircache.c b/firmware/common/dircache.c
index 589986911c..3b880d3382 100644
--- a/firmware/common/dircache.c
+++ b/firmware/common/dircache.c
@@ -2956,7 +2956,7 @@ void dircache_dump(void)
2956 FOR_EACH_CACHE_ENTRY(ce) 2956 FOR_EACH_CACHE_ENTRY(ce)
2957 { 2957 {
2958 #ifdef DIRCACHE_NATIVE 2958 #ifdef DIRCACHE_NATIVE
2959 time_t mtime = fattime_mktime(ce->wrtdate, ce->wrttime); 2959 time_t mtime = dostime_mktime(ce->wrtdate, ce->wrttime);
2960 #else 2960 #else
2961 time_t mtime = ce->mtime; 2961 time_t mtime = ce->mtime;
2962 #endif 2962 #endif