summaryrefslogtreecommitdiff
path: root/net/siproxd/files/patch-src__utils.c
blob: e003af13767af970ade94ac264a69540b4f96cd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/utils.c.orig	Mon Sep  3 21:54:48 2007
+++ src/utils.c	Wed Nov 14 12:26:19 2007
@@ -23,7 +23,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
-#include <values.h>
+#include <limits.h>
 #include <time.h>
 #include <signal.h>
 #include <string.h>
@@ -208,8 +208,8 @@
     */
    j=0;
    k=0;
-   t1=MAXINT;
-   t2=MAXINT;
+   t1=INT_MAX;
+   t2=INT_MAX;
    for (i=0; i<DNS_CACHE_SIZE; i++) {
       if (dns_cache[i].hostname[0]=='\0') break;
       if ((dns_cache[i].expires_timestamp < t1) &&