From 0819ae2ca51571d205df061b52d8468889f3a0df Mon Sep 17 00:00:00 2001 From: Michael Sawyer Date: Thu, 6 Jul 2000 01:02:42 +0000 Subject: [PATCH] Use limits.h/INT_MAX instead of the deprecated values.h/MAXINT --- bin/dig/dighost.c | 6 +++--- bin/dig/host.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 9c4a692a0d..7fff424593 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: dighost.c,v 1.69 2000/07/05 23:28:28 mws Exp $ */ +/* $Id: dighost.c,v 1.70 2000/07/06 01:02:41 mws Exp $ */ /* * Notice to programmers: Do not use this code as an example of how to @@ -31,7 +31,7 @@ #include #include #include -#include +#include #if (!(defined(HAVE_ADDRINFO) && defined(HAVE_GETADDRINFO))) extern int h_errno; #endif @@ -1184,7 +1184,7 @@ send_udp(dig_lookup_t *lookup) { debug("send_udp()"); - if (timeout != MAXINT) { + if (timeout != INT_MAX) { isc_interval_set(&lookup->interval, timeout, 0); result = isc_timer_create(timermgr, isc_timertype_once, NULL, &lookup->interval, global_task, diff --git a/bin/dig/host.c b/bin/dig/host.c index 68cd58e5ec..7d0a7ff88f 100644 --- a/bin/dig/host.c +++ b/bin/dig/host.c @@ -15,11 +15,11 @@ * SOFTWARE. */ -/* $Id: host.c,v 1.35 2000/07/05 23:28:29 mws Exp $ */ +/* $Id: host.c,v 1.36 2000/07/06 01:02:42 mws Exp $ */ #include #include -#include +#include extern int h_errno; @@ -578,7 +578,7 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) { * The timer routines are coded such that * timeout==MAXINT doesn't enable the timer */ - timeout = MAXINT; + timeout = INT_MAX; break; case 'W': timeout = atoi(isc_commandline_argument);