summaryrefslogtreecommitdiff
path: root/avr/cmd_fat.c
diff options
context:
space:
mode:
authorLeo C2019-05-29 23:08:12 +0200
committerLeo C2019-05-29 23:08:12 +0200
commitbb497e9d2ea1437c570e179e99f024d2bc456d6f (patch)
tree5c89aa2eb77cd79ba84b349b81097c9b08379ecc /avr/cmd_fat.c
parent8a500c7f3634212263ab1291c139d9c6a8967b8b (diff)
downloadz180-stamp-bb497e9d2ea1437c570e179e99f024d2bc456d6f.zip
Remove local copy of avr-libc time lib.
Diffstat (limited to 'avr/cmd_fat.c')
-rw-r--r--avr/cmd_fat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/avr/cmd_fat.c b/avr/cmd_fat.c
index 2970ac3..fdd05b4 100644
--- a/avr/cmd_fat.c
+++ b/avr/cmd_fat.c
@@ -10,13 +10,14 @@
#include "cmd_fat.h"
#include <ctype.h>
+#include <time.h>
+uint32_t fat_time(const struct tm * timeptr);
#include "ff.h"
#include "z80-if.h"
#include "eval_arg.h"
#include "con-utils.h"
#include "print-utils.h"
-#include "time.h"
#include "timer.h"
#include "debug.h"
#include "env.h"
@@ -59,7 +60,7 @@ DWORD get_fattime (void)
time(&timer);
gmtime_r(&timer, &tm_timer);
- return fatfs_time(&tm_timer);
+ return fat_time(&tm_timer);
}