diff options
author | Alexander Levin <al.le@rockbox.org> | 2009-06-29 14:58:02 +0000 |
---|---|---|
committer | Alexander Levin <al.le@rockbox.org> | 2009-06-29 14:58:02 +0000 |
commit | eaa9df37e061de4bfbdd75c45034ad86afc97c65 (patch) | |
tree | 1d716323a84ee57f10c531c02db4718b4d1e6dd3 | |
parent | fb79ae46037fd9d00c76e1e1137e8a282c37d3be (diff) | |
download | rockbox-eaa9df37e061de4bfbdd75c45034ad86afc97c65.tar.gz rockbox-eaa9df37e061de4bfbdd75c45034ad86afc97c65.zip |
Fix yellow introduced in r21561
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21563 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/common/timefuncs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index cc54840376..6fdc0b7240 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c | |||
@@ -27,10 +27,11 @@ | |||
27 | #include "timefuncs.h" | 27 | #include "timefuncs.h" |
28 | #include "debug.h" | 28 | #include "debug.h" |
29 | 29 | ||
30 | #if !(defined SIMULATOR && CONFIG_RTC) | 30 | #if !defined SIMULATOR || !CONFIG_RTC |
31 | |||
32 | static struct tm tm; | 31 | static struct tm tm; |
32 | #endif /* !defined SIMULATOR || !CONFIG_RTC */ | ||
33 | 33 | ||
34 | #if !CONFIG_RTC | ||
34 | static void fill_default_tm(struct tm *tm) | 35 | static void fill_default_tm(struct tm *tm) |
35 | { | 36 | { |
36 | tm->tm_sec = 0; | 37 | tm->tm_sec = 0; |
@@ -43,7 +44,7 @@ static void fill_default_tm(struct tm *tm) | |||
43 | tm->tm_yday = 0; /* Not implemented for now */ | 44 | tm->tm_yday = 0; /* Not implemented for now */ |
44 | tm->tm_isdst = -1; /* Not implemented for now */ | 45 | tm->tm_isdst = -1; /* Not implemented for now */ |
45 | } | 46 | } |
46 | #endif /* !(defined SIMULATOR && CONFIG_RTC)*/ | 47 | #endif /* !CONFIG_RTC */ |
47 | 48 | ||
48 | bool valid_time(const struct tm *tm) | 49 | bool valid_time(const struct tm *tm) |
49 | { | 50 | { |