[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-commit] [2333] Addressed a warning in mk_gmtime() when compile
From: |
Mike Rice |
Subject: |
[avr-libc-commit] [2333] Addressed a warning in mk_gmtime() when compiler flag -Wextra is used |
Date: |
Fri, 05 Apr 2013 16:49:51 +0000 |
Revision: 2333
http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2333
Author: swfltek
Date: 2013-04-05 16:49:50 +0000 (Fri, 05 Apr 2013)
Log Message:
-----------
Addressed a warning in mk_gmtime() when compiler flag -Wextra is used
Modified Paths:
--------------
trunk/avr-libc/libc/time/mk_gmtime.c
Modified: trunk/avr-libc/libc/time/mk_gmtime.c
===================================================================
--- trunk/avr-libc/libc/time/mk_gmtime.c 2013-04-03 21:33:10 UTC (rev
2332)
+++ trunk/avr-libc/libc/time/mk_gmtime.c 2013-04-05 16:49:50 UTC (rev
2333)
@@ -30,7 +30,6 @@
/*
'Break down' a y2k time stamp into the elements of struct tm.
-
Unlike mktime(), this function does not 'normalize' the elements of
timeptr.
*/
@@ -87,10 +86,10 @@
/* Add day of year to elapsed days, and convert to seconds */
tmp += d;
- ret = 86400LL * tmp;
+ ret = ONE_DAY * tmp;
/* compute 'fractional' day */
- tmp = 3600L * timeptr->tm_hour;
+ tmp = ONE_HOUR * timeptr->tm_hour;
tmp += 60L * timeptr->tm_min;
tmp += timeptr->tm_sec;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-commit] [2333] Addressed a warning in mk_gmtime() when compiler flag -Wextra is used,
Mike Rice <=