aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2007-05-31 05:36:23 +0800
committerjkim <jkim@FreeBSD.org>2007-05-31 05:36:23 +0800
commite784619e66644e77d8ee76343c04c8eec9ecf5e1 (patch)
treeb321c70e88c3ce3d08da687b206e2562aac96e43 /java
parent11680f96b216e47a5f490b4d8de51c5b045bff98 (diff)
downloadfreebsd-ports-gnome-e784619e66644e77d8ee76343c04c8eec9ecf5e1.tar.gz
freebsd-ports-gnome-e784619e66644e77d8ee76343c04c8eec9ecf5e1.tar.zst
freebsd-ports-gnome-e784619e66644e77d8ee76343c04c8eec9ecf5e1.zip
Fix more sysctl(3) argument sizes and correct a comment.
Approved by: glewis (implicit)
Diffstat (limited to 'java')
-rw-r--r--java/jdk15/files/patch-j2se::bin::java_md.c36
-rw-r--r--java/jdk16/files/patch-j2se::bin::java_md.c36
2 files changed, 62 insertions, 10 deletions
diff --git a/java/jdk15/files/patch-j2se::bin::java_md.c b/java/jdk15/files/patch-j2se::bin::java_md.c
index 44bcce094433..3b8c8a276cfe 100644
--- a/java/jdk15/files/patch-j2se::bin::java_md.c
+++ b/java/jdk15/files/patch-j2se::bin::java_md.c
@@ -1,16 +1,42 @@
---- ../../j2se/src/solaris/bin/java_md.c.orig Thu May 24 19:15:46 2007
-+++ ../../j2se/src/solaris/bin/java_md.c Thu May 24 19:14:59 2007
-@@ -1061,7 +1061,8 @@
+--- ../../j2se/src/solaris/bin/java_md.c.orig Fri May 25 21:49:14 2007
++++ ../../j2se/src/solaris/bin/java_md.c Wed May 30 17:00:23 2007
+@@ -1060,8 +1060,9 @@
+
#if defined(_ALLBSD_SOURCE)
- uint64_t result;
+- uint64_t result;
- int mib[2], rlen;
++ unsigned long result;
+ int mib[2];
+ size_t rlen;
/* fetch sysctl(hw.physmem) value */
mib[0] = CTL_HW;
-@@ -1635,7 +1636,7 @@
+@@ -1342,10 +1343,11 @@
+
+ #if defined(_ALLBSD_SOURCE)
+
+- unsigned long result, sys_processors;
+- int mib[2], rlen;
++ unsigned long sys_processors;
++ int mib[2], result;
++ size_t rlen;
+
+- /* fetch sysctl(hw.physmem) value */
++ /* fetch sysctl(hw.ncpu) value */
+ mib[0] = CTL_HW;
+ mib[1] = HW_NCPU;
+ rlen = sizeof(result);
+@@ -1354,7 +1356,7 @@
+ result = 1;
+
+ if (_launcher_debug) {
+- printf("sysctl(hw.ncpu): %lu\n", result);
++ printf("sysctl(hw.ncpu): %d\n", result);
+ }
+
+ sys_processors = result;
+@@ -1635,7 +1637,7 @@
while (dp != NULL) {
cp = strchr(dp, (int)':');
if (cp != NULL)
diff --git a/java/jdk16/files/patch-j2se::bin::java_md.c b/java/jdk16/files/patch-j2se::bin::java_md.c
index 44bcce094433..3b8c8a276cfe 100644
--- a/java/jdk16/files/patch-j2se::bin::java_md.c
+++ b/java/jdk16/files/patch-j2se::bin::java_md.c
@@ -1,16 +1,42 @@
---- ../../j2se/src/solaris/bin/java_md.c.orig Thu May 24 19:15:46 2007
-+++ ../../j2se/src/solaris/bin/java_md.c Thu May 24 19:14:59 2007
-@@ -1061,7 +1061,8 @@
+--- ../../j2se/src/solaris/bin/java_md.c.orig Fri May 25 21:49:14 2007
++++ ../../j2se/src/solaris/bin/java_md.c Wed May 30 17:00:23 2007
+@@ -1060,8 +1060,9 @@
+
#if defined(_ALLBSD_SOURCE)
- uint64_t result;
+- uint64_t result;
- int mib[2], rlen;
++ unsigned long result;
+ int mib[2];
+ size_t rlen;
/* fetch sysctl(hw.physmem) value */
mib[0] = CTL_HW;
-@@ -1635,7 +1636,7 @@
+@@ -1342,10 +1343,11 @@
+
+ #if defined(_ALLBSD_SOURCE)
+
+- unsigned long result, sys_processors;
+- int mib[2], rlen;
++ unsigned long sys_processors;
++ int mib[2], result;
++ size_t rlen;
+
+- /* fetch sysctl(hw.physmem) value */
++ /* fetch sysctl(hw.ncpu) value */
+ mib[0] = CTL_HW;
+ mib[1] = HW_NCPU;
+ rlen = sizeof(result);
+@@ -1354,7 +1356,7 @@
+ result = 1;
+
+ if (_launcher_debug) {
+- printf("sysctl(hw.ncpu): %lu\n", result);
++ printf("sysctl(hw.ncpu): %d\n", result);
+ }
+
+ sys_processors = result;
+@@ -1635,7 +1637,7 @@
while (dp != NULL) {
cp = strchr(dp, (int)':');
if (cp != NULL)
an title='2009-10-12 17:41:50 +0800'>2009-10-124-13/+41 * - Update to 0.14avl2009-10-122-4/+4 * - Update to 0.14avl2009-10-127-34/+40 * - Update to 0.14avl2009-10-122-4/+4 * - Fix build with custom PREFIXavl2009-10-121-1/+1 * - Fix build with custom PREFIXavl2009-10-121-1/+1 * - Update to 0.12.4amdmi32009-09-094-15/+20 * - Update to 0.44.1fluffy2009-09-032-6/+6 * - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-2214-24/+14 * Mark BROKEN: does not build.erwin2009-08-031-0/+1 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-034-4/+4 * - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-319-2/+9 * - Update boost to 1.39pav2009-07-281-1/+1 * - Disable optimizations, they cause segfaults on runtimepav2009-07-281-2/+2 * - Mark BROKEN on amd64/8pav2009-07-261-0/+1 * - Update to 1.6.2amdmi32009-07-102-4/+4 * - Unbreak on -current.wxs2009-07-091-6/+27 * Change MAINTAINER on my ports to my FreeBSD email addressavl2009-05-295-5/+5 * Mark BROKEN on 8.x: does not build.erwin2009-05-271-0/+4 * - Reset maintainermiwi2009-05-053-3/+3 * - Add patch to fix functionality on FreeBSD 7.xamdmi32009-04-222-1/+16 * - Fix build on CURRENT with new USB stackamdmi32009-04-021-0/+15 * - Fix indexmiwi2009-04-011-0/+1 * - Allow to build with MAKE_JOBS_SAFEmiwi2009-04-013-3/+8 * - Fix build with new USB2miwi2009-03-261-0/+2 * - Update to 0.13miwi2009-03-212-5/+4 * - Update to 0.13miwi2009-03-212-4/+4 * - Update to 0.13.1miwi2009-03-213-16/+4 * - Update to 0.13miwi2009-03-212-5/+4 * - Update to 0.13.1miwi2009-03-212-5/+9 * - Chase libusb20 rename in r189585.stas2009-03-102-2/+7 * Update to 2.0.17.marcus2009-03-015-9/+8 * - Update to 5.1.0r3tabthorpe2009-03-012-5/+20 * - Old MASTER_SITES are dead, switch to newer oneswxs2009-02-253-18/+7 * - Update to 0.2.2miwi2009-02-203-24/+4 * - Pass maintainership to submittertabthorpe2009-02-133-3/+3 * 2009-01-19 games/emacs-chess: has been broken for more than 6 monthsmiwi2009-02-047-128/+0 * - Use GNOME macro instead of ${MASTER_SITE_GNOME}, removearaujo2009-02-021-2/+1 * - Update to 0.2.1amdmi32009-01-154-5/+30 * - Update to 0.13.amdmi32009-01-158-236/+18 * - Remove conditional checks for FreeBSD 5.x and olderpav2009-01-071-3/+0 * - Update to 1.6.1amdmi32009-01-033-13/+7 * - Set for expiration in one month: has been broken for more than 6 monthspav2008-12-201-0/+2 * 2008-10-19 x11-wm/flwm: Project is dead, and uses obsolete version of fltkmiwi2008-12-0814-236/+0 * - Update to 0.12.3pav2008-12-044-24/+27 * - Remove py-wbxml from run-time dependencies listmiwi2008-11-231-1/+1 * - Update to 1.6.0miwi2008-11-095-25/+18 * - Speedup build phase.miwi2008-10-152-3/+7 * - Speedup build phase.miwi2008-10-152-3/+7 * Fix CATEGORIES in slave palm/py-synce-librapi2 and palm/py-synce-librra.miwi2008-10-122-2/+2 * SynCE is a project for connecting to devices running Windows CE or Pocket PC.miwi2008-10-056-0/+240 * - Fix manpage installmiwi2008-09-111-2/+2 * Fix an obvious typo.linimon2008-09-081-1/+1 * SynCE is a project for connecting to devices running Windows CE or Pocket PC.miwi2008-09-085-0/+41 * SynCE is a project for connecting to devices running Windows CE or Pocket PC.miwi2008-09-085-0/+40 * - Fixes issues with incorrectly handledmiwi2008-09-081-3/+4 * - Remove empty filespav2008-08-261-0/+0 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-213-3/+0 * Conversion from (now defunct) autoconf-2.61 to autoconf-2.62ade2008-08-201-1/+1 * - Update to 0.12miwi2008-08-20