]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Correct the typecast of .tv_sec in isc_stdtime_get()
authorOndřej Surý <ondrej@isc.org>
Wed, 25 Mar 2020 21:08:50 +0000 (22:08 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 25 Mar 2020 21:08:50 +0000 (22:08 +0100)
lib/isc/unix/stdtime.c

index 80e9f255472a6e62a308da38c52477ba8be31239..e3fefad500461de524659aaeaf79474d47b6e226 100644 (file)
@@ -47,5 +47,5 @@ isc_stdtime_get(isc_stdtime_t *t) {
 
        REQUIRE(ts.tv_sec > 0 && ts.tv_nsec >= 0 && ts.tv_nsec < NS_PER_S);
 
-       *t = (unsigned int)ts.tv_sec;
+       *t = (isc_stdtime_t)ts.tv_sec;
 }