changeset 3295:5e0a71f2fa14

. Switch from non-standard <values.h> and MAXINT to <limits.h> and INT_MAX, which are part of the standard.
author Greg Lewis <glewis@eyesbeyond.com>
date Sat, 11 Dec 2010 23:21:38 -0800
parents d560f76209be
children 3e3f95d3d951
files src/solaris/native/java/net/net_util_md.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/net/net_util_md.c	Sat Dec 11 09:09:06 2010 -0800
+++ b/src/solaris/native/java/net/net_util_md.c	Sat Dec 11 23:21:38 2010 -0800
@@ -33,7 +33,7 @@
 #include <netdb.h>
 #include <stdlib.h>
 #include <dlfcn.h>
-#include <values.h>
+#include <limits.h>
 
 #ifdef _ALLBSD_SOURCE
 #include <sys/param.h>
@@ -136,7 +136,7 @@
 
 static int findMaxBuf(int fd, int opt, int sotype) {
     int a = 0;
-    int b = MAXINT;
+    int b = INT_MAX;
     int initial_guess;
     int limit = -1;