diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/libc/gmtime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/libc/gmtime.c b/firmware/libc/gmtime.c index 23b9c7b247..89960ce83b 100644 --- a/firmware/libc/gmtime.c +++ b/firmware/libc/gmtime.c | |||
@@ -22,6 +22,7 @@ | |||
22 | * | 22 | * |
23 | ****************************************************************************/ | 23 | ****************************************************************************/ |
24 | #include <stdbool.h> | 24 | #include <stdbool.h> |
25 | #include <stdint.h> | ||
25 | #include "time.h" | 26 | #include "time.h" |
26 | 27 | ||
27 | #define MINUTE_SECONDS 60 | 28 | #define MINUTE_SECONDS 60 |
@@ -32,7 +33,7 @@ | |||
32 | #define LEAP_YEAR_SECONDS 31622400 | 33 | #define LEAP_YEAR_SECONDS 31622400 |
33 | 34 | ||
34 | /* Days in each month */ | 35 | /* Days in each month */ |
35 | static int days_in_month[] = | 36 | static uint8_t days_in_month[] = |
36 | {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; | 37 | {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; |
37 | 38 | ||
38 | static inline bool is_leapyear(int year) | 39 | static inline bool is_leapyear(int year) |