changeset 3296:3e3f95d3d951

. Make rlen a size_t rather than a int. This is the correct argument type to pass to sysctl and fixes a crash on 64 bit architectures where size_t is 64 bits rather than 32 bits.
author Greg Lewis <glewis@eyesbeyond.com>
date Mon, 13 Dec 2010 00:57:24 -0800
parents 5e0a71f2fa14
children 88b82b3549e7
files src/solaris/native/com/sun/management/UnixOperatingSystem_md.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c	Sat Dec 11 23:21:38 2010 -0800
+++ b/src/solaris/native/com/sun/management/UnixOperatingSystem_md.c	Mon Dec 13 00:57:24 2010 -0800
@@ -292,7 +292,7 @@
 #ifdef _ALLBSD_SOURCE
     jlong result;
     int mib[2];
-    int rlen;
+    size_t rlen;
 
     mib[0] = CTL_HW;
     mib[1] = HW_PHYSMEM;