mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-20 21:58:03 -04:00
Use limits.h/INT_MAX instead of the deprecated values.h/MAXINT
This commit is contained in:
parent
08133a2dbe
commit
0819ae2ca5
2 changed files with 6 additions and 6 deletions
|
|
@ -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 <unistd.h>
|
||||
#include <netdb.h>
|
||||
#include <string.h>
|
||||
#include <values.h>
|
||||
#include <limits.h>
|
||||
#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,
|
||||
|
|
|
|||
|
|
@ -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 <config.h>
|
||||
#include <stdlib.h>
|
||||
#include <values.h>
|
||||
#include <limits.h>
|
||||
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue