summaryrefslogtreecommitdiff
path: root/drivers/rtc/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/date.c')
-rw-r--r--drivers/rtc/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/date.c b/drivers/rtc/date.c
index a83a7235ab..d30ad92a70 100644
--- a/drivers/rtc/date.c
+++ b/drivers/rtc/date.c
@@ -36,8 +36,8 @@
#define SECDAY 86400L
#define SECYR (SECDAY * 365)
#define leapyear(year) ((year) % 4 == 0)
-#define days_in_year(a) (leapyear(a) ? 366 : 365)
-#define days_in_month(a) (month_days[(a) - 1])
+#define days_in_year(a) (leapyear(a) ? 366 : 365)
+#define days_in_month(a) (month_days[(a) - 1])
static int month_days[12] = {
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31