Description of problem: Here is patch to get anacron-2.3-29 to compile on ISO C compilers. --- gregor.c.orig 2004-02-19 12:40:10.000000000 +0000 +++ gregor.c 2004-02-19 12:40:41.000000000 +0000 @@ -65,7 +65,6 @@ { int dn; int i; - const int isleap; /* save three calls to leap() */ /* Some validity checks */ @@ -76,7 +75,7 @@ if (month > 12 || month < 1) return - 1; if (day < 1) return - 1; - isleap = leap(year); + const int isleap = leap(year); /* save three calls to leap() */ if (month != 2) { if(day > days_in_month[month - 1]) return - 1; Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
*** Bug 110692 has been marked as a duplicate of this bug. ***
The patch in bug 121006 is slightly better (it does not require C99 support). *** This bug has been marked as a duplicate of 121006 *** *** This bug has been marked as a duplicate of 121006 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.