diff options
author | Christos Zoulas <christos@zoulas.com> | 2009-03-10 11:44:29 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2009-03-10 11:44:29 +0000 |
commit | ea0e28ef98fc0f2ff9721adc26b09f1818568b7a (patch) | |
tree | bb4e37b1d40d1a2f230da30866acccfcadc24fc5 /src/cdf_time.c | |
parent | 9ec40622c05c69cf4f789a11ac9a1ab7c9f017ce (diff) | |
download | file-git-ea0e28ef98fc0f2ff9721adc26b09f1818568b7a.tar.gz |
avoid c99 syntax.
Diffstat (limited to 'src/cdf_time.c')
-rw-r--r-- | src/cdf_time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cdf_time.c b/src/cdf_time.c index 9dbcad1f..3ddf8a72 100644 --- a/src/cdf_time.c +++ b/src/cdf_time.c @@ -27,7 +27,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: cdf_time.c,v 1.4 2008/11/04 16:38:28 christos Exp $") +FILE_RCSID("@(#)$File: cdf_time.c,v 1.5 2009/02/03 20:27:51 christos Exp $") #endif #include <time.h> @@ -102,6 +102,7 @@ cdf_timestamp_to_timespec(struct timespec *ts, cdf_timestamp_t t) #ifdef HAVE_STRUCT_TM_TM_ZONE static char UTC[] = "UTC"; #endif + int rdays; /* Unit is 100's of nanoseconds */ ts->tv_nsec = (t % CDF_TIME_PREC) * 100; @@ -119,7 +120,7 @@ cdf_timestamp_to_timespec(struct timespec *ts, cdf_timestamp_t t) // XXX: Approx tm.tm_year = CDF_BASE_YEAR + (t / 365); - int rdays = cdf_getdays(tm.tm_year); + rdays = cdf_getdays(tm.tm_year); t -= rdays; tm.tm_mday = cdf_getday(tm.tm_year, t); tm.tm_mon = cdf_getmonth(tm.tm_year, t); |