diff --git a/misc-utils/cal.c b/misc-utils/cal.c index 98bdff681..64847da3c 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -531,13 +531,9 @@ int main(int argc, char **argv) return EXIT_SUCCESS; } -/* leap year -- account for gregorian reformation in 1752 */ static int leap_year(int32_t year) { - if (year <= REFORMATION_YEAR) - return !(year % 4); - else - return ( !(year % 4) && (year % 100) ) || !(year % 400); + return ( !(year % 4) && (year % 100) ) || !(year % 400); } static void init_monthnames(struct cal_control *ctl)