From ccb080a07197e784cb456903da6f39e05a192f88 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Tue, 30 Oct 2007 05:59:06 +0000 Subject: [PATCH] Fixed compare against (time_t)-1 --- source/filetime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/filetime.c b/source/filetime.c index 263a25e..cfe6b4c 100644 --- a/source/filetime.c +++ b/source/filetime.c @@ -57,7 +57,7 @@ u16 _FAT_filetime_getTimeFromRTC (void) { struct tm timeParts; time_t epochTime; - if (time(&epochTime) == (time)-1) { + if (time(&epochTime) == (time_t)-1) { return 0; } localtime_r(&epochTime, &timeParts); @@ -84,7 +84,7 @@ u16 _FAT_filetime_getDateFromRTC (void) { struct tm timeParts; time_t epochTime; - if (time(&epochTime) == (time)-1) { + if (time(&epochTime) == (time_t)-1) { return 0; } localtime_r(&epochTime, &timeParts);