Bug 116249 - patch for ISO C
Summary: patch for ISO C
Keywords:
Status: CLOSED DUPLICATE of bug 121006
Alias: None
Product: Fedora
Classification: Fedora
Component: anacron
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Brock Organ
URL:
Whiteboard:
: 110692 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-19 15:07 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-21 19:01:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2004-02-19 15:07:04 UTC
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:

Comment 1 Miloslav Trmac 2004-04-21 17:53:38 UTC
*** Bug 110692 has been marked as a duplicate of this bug. ***

Comment 2 Miloslav Trmac 2004-04-21 17:57:39 UTC
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 ***

Comment 3 Red Hat Bugzilla 2006-02-21 19:01:26 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.