[kaffe] CVS kaffe (robilad): AccessController warnings fixed

Kaffe CVS cvs-commits at kaffe.org
Fri Nov 5 16:48:47 PST 2004


PatchSet 5401 
Date: 2004/11/06 00:44:37
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
AccessController warnings fixed

2004-11-06  Eric Anholt  <eta at lclark.edu>

        * libraries/clib/native/AccessController.c:
        Warnings fixes which probably matter on 64-bit (assuming that a
        non-prototyped function returns int, instead of pointer).

Members: 
	ChangeLog:1.2950->1.2951 
	libraries/clib/native/AccessController.c:1.1->1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2950 kaffe/ChangeLog:1.2951
--- kaffe/ChangeLog:1.2950	Fri Nov  5 23:58:00 2004
+++ kaffe/ChangeLog	Sat Nov  6 00:44:37 2004
@@ -1,3 +1,9 @@
+2004-11-06  Eric Anholt  <eta at lclark.edu>
+
+	* libraries/clib/native/AccessController.c:
+	Warnings fixes which probably matter on 64-bit (assuming that a
+	non-prototyped function returns int, instead of pointer).
+
 2004-11-06  Noa Resare  <noa at resare.com>
 
 	* test/regression/ThreadState.java: Call System.exit(-1) if there
Index: kaffe/libraries/clib/native/AccessController.c
diff -u kaffe/libraries/clib/native/AccessController.c:1.1 kaffe/libraries/clib/native/AccessController.c:1.2
--- kaffe/libraries/clib/native/AccessController.c:1.1	Mon May 31 21:17:15 2004
+++ kaffe/libraries/clib/native/AccessController.c	Sat Nov  6 00:44:43 2004
@@ -33,7 +33,7 @@
 #include "java_security_VMAccessController.h"
 #include "stackTrace.h"
 #include "support.h"
-
+#include "stringSupport.h"
 
 /*
  * Returns the call stack of the current thread as a pair of arrays: the
@@ -49,9 +49,9 @@
   errorInfo einfo;
   int cnt;
   int i;
-  HArrayOfArray *classes;
+  HArrayOfObject *classes;
   HArrayOfObject *meths;
-  HArrayOfObject *array;
+  HArrayOfArray *array;
 
   info = (stackTraceInfo *) buildStackTrace(0);
   if (info == NULL)
@@ -67,7 +67,7 @@
 	cnt++;
     }
 
-  array = (HArrayOfObject *) AllocObjectArray (2, "[Ljava/lang/Object;", 0);
+  array = (HArrayOfArray *) AllocObjectArray (2, "[Ljava/lang/Object;", 0);
   classes = (HArrayOfObject *) AllocObjectArray (cnt, "Ljava/lang/Class;", 0);
   meths = (HArrayOfObject *) AllocObjectArray (cnt, "Ljava/lang/String;", 0);
 




More information about the kaffe mailing list