[kaffe] CVS kaffe (dalibor): Fixed KFREE prototype warnings
Kaffe CVS
Kaffe Mailing List <kaffe@kaffe.org>
Wed Mar 24 14:25:02 2004
PatchSet 4571
Date: 2004/03/24 20:08:10
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed KFREE prototype warnings
2004-03-24 Dalibor Topic <robilad@kaffe.org>
* include/kaffe/jmalloc.h:
[KAFFEVM_DEBUG](KFREE) Changed prototype to
void * to fix compiler warnings.
Members:
ChangeLog:1.2149->1.2150
include/kaffe/jmalloc.h:1.4->1.5
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2149 kaffe/ChangeLog:1.2150
--- kaffe/ChangeLog:1.2149 Wed Mar 24 19:47:47 2004
+++ kaffe/ChangeLog Wed Mar 24 20:08:10 2004
@@ -1,5 +1,11 @@
2004-03-24 Dalibor Topic <robilad@kaffe.org>
+ * include/kaffe/jmalloc.h:
+ [KAFFEVM_DEBUG](KFREE) Changed prototype to
+ void * to fix compiler warnings.
+
+2004-03-24 Dalibor Topic <robilad@kaffe.org>
+
* ChangeLog: Shuffled stuff before 1.1.4 into
ChangeLog.9.
Index: kaffe/include/kaffe/jmalloc.h
diff -u kaffe/include/kaffe/jmalloc.h:1.4 kaffe/include/kaffe/jmalloc.h:1.5
--- kaffe/include/kaffe/jmalloc.h:1.4 Thu Sep 11 16:51:20 2003
+++ kaffe/include/kaffe/jmalloc.h Wed Mar 24 20:08:12 2004
@@ -33,9 +33,9 @@
* to aid debugging.
* */
#undef KFREE
-static inline void KFREE(const void *p) {
- jfree ((void *)p);
- p = (void *)0;
+static inline void KFREE(void *p) {
+ jfree (p);
+ p = NULL;
}
#endif