aboutsummaryrefslogtreecommitdiff
path: root/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'strftime.c')
-rw-r--r--strftime.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/strftime.c b/strftime.c
index c249010561d1..a7d488499fdd 100644
--- a/strftime.c
+++ b/strftime.c
@@ -464,9 +464,7 @@ label:
int bot;
int top;
- len = isleap_sum(year, base) ?
- DAYSPERLYEAR :
- DAYSPERNYEAR;
+ len = year_sum_days(year, base);
/*
** What yday (-3 ... 3) does
** the ISO year begin on?
@@ -493,9 +491,8 @@ label:
break;
}
--base;
- yday += isleap_sum(year, base) ?
- DAYSPERLYEAR :
- DAYSPERNYEAR;
+ yday += year_sum_days(year,
+ base);
}
#ifdef XPG4_1994_04_09
if ((w == 52 &&