diff options
author | James Buren <braewoods+rb@braewoods.net> | 2021-07-03 00:19:58 +0000 |
---|---|---|
committer | James Buren <braewoods+rb@braewoods.net> | 2021-07-03 00:19:58 +0000 |
commit | c9f2308a1d4401ceefaac47b1ea851530d07e47d (patch) | |
tree | 81f75a26707bd8583f5117a7a0febba894787996 /firmware/common/dir.c | |
parent | d1a92aafff55defefcb8cf8f4b045701325088b2 (diff) | |
download | rockbox-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/dir.c')
-rw-r--r-- | firmware/common/dir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c index f89129ae34..245947b134 100644 --- a/firmware/common/dir.c +++ b/firmware/common/dir.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "debug.h" | 26 | #include "debug.h" |
27 | #include "dir.h" | 27 | #include "dir.h" |
28 | #include "pathfuncs.h" | 28 | #include "pathfuncs.h" |
29 | #include "timefuncs.h" | ||
29 | #include "fileobj_mgr.h" | 30 | #include "fileobj_mgr.h" |
30 | #include "dircache_redirect.h" | 31 | #include "dircache_redirect.h" |
31 | 32 | ||
@@ -406,7 +407,7 @@ struct dirinfo dir_get_info(DIR *dirp, struct dirent *entry) | |||
406 | { | 407 | { |
407 | .attribute = entry->info.attr, | 408 | .attribute = entry->info.attr, |
408 | .size = entry->info.size, | 409 | .size = entry->info.size, |
409 | .mtime = fattime_mktime(entry->info.wrtdate, entry->info.wrttime), | 410 | .mtime = dostime_mktime(entry->info.wrtdate, entry->info.wrttime), |
410 | }; | 411 | }; |
411 | 412 | ||
412 | file_error: | 413 | file_error: |