Bug 116249
| Summary: | patch for ISO C | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | d.binderman |
| Component: | anacron | Assignee: | Jens Petersen <petersen> |
| Status: | CLOSED DUPLICATE | QA Contact: | Brock Organ <borgan> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-02-21 19:01:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** 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. |
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: