]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_9] one more win32 build error
authorEvan Hunt <each@isc.org>
Fri, 10 Jan 2014 19:21:25 +0000 (11:21 -0800)
committerEvan Hunt <each@isc.org>
Fri, 10 Jan 2014 19:21:25 +0000 (11:21 -0800)
lib/isc/win32/time.c

index 510f2e06c1724b822d4052bc51944de3248e9fa9..925390e100aeb695dc4c9301b08fa434d9bba9ec 100644 (file)
@@ -248,14 +248,13 @@ isc_time_secondsastimet(const isc_time_t *t, time_t *secondsp) {
        time_t seconds;
 
        REQUIRE(t != NULL);
-       INSIST(t->nanoseconds < NS_PER_S);
 
        seconds = (time_t)isc_time_seconds(t);
 
        INSIST(sizeof(unsigned int) == sizeof(isc_uint32_t));
        INSIST(sizeof(time_t) >= sizeof(isc_uint32_t));
 
-       if (t->seconds > (~0U>>1) && seconds <= (time_t)(~0U>>1))
+       if (isc_time_seconds(t) > (~0U>>1) && seconds <= (time_t)(~0U>>1))
                return (ISC_R_RANGE);
 
        *secondsp = seconds;