diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-09-12 23:06:46 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-09-12 23:06:46 +0000 |
commit | 612dacf5d11254b5352f9d12ca08170449e45963 (patch) | |
tree | b442f2186ee779ab564505df57d6298959648943 /usr.sbin | |
parent | a6ca40e746648ea9bf6dbe4b21c4727b32d31abf (diff) |
Misc time_t tweaks. %ld / (long)tv_sec -> %lld / (long long)tv_sec.
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bind/lib/lwres/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bind/lib/lwres/context.c b/usr.sbin/bind/lib/lwres/context.c index 2145be31805..950cb3531dc 100644 --- a/usr.sbin/bind/lib/lwres/context.c +++ b/usr.sbin/bind/lib/lwres/context.c @@ -449,10 +449,10 @@ lwres_context_sendrecv(lwres_context_t *ctx, struct timeval timeout; /* - * Type of tv_sec is 32 bits long. + * Type of tv_sec is at least 32 bits long. */ if (ctx->timeout <= 0x7FFFFFFFU) - timeout.tv_sec = (int)ctx->timeout; + timeout.tv_sec = ctx->timeout; else timeout.tv_sec = 0x7FFFFFFF; |