[Haiku-commits] r31021 - haiku/trunk/src/system/runtime_loader/arch/m68k

mmu_man at BerliOS mmu_man at mail.berlios.de
Sat Jun 13 00:02:22 CEST 2009


Author: mmu_man
Date: 2009-06-13 00:02:21 +0200 (Sat, 13 Jun 2009)
New Revision: 31021
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31021&view=rev

Modified:
   haiku/trunk/src/system/runtime_loader/arch/m68k/arch_relocate.cpp
Log:
Fix build due to stricter type checking in C++ than C.


Modified: haiku/trunk/src/system/runtime_loader/arch/m68k/arch_relocate.cpp
===================================================================
--- haiku/trunk/src/system/runtime_loader/arch/m68k/arch_relocate.cpp	2009-06-12 21:16:04 UTC (rev 31020)
+++ haiku/trunk/src/system/runtime_loader/arch/m68k/arch_relocate.cpp	2009-06-12 22:02:21 UTC (rev 31021)
@@ -26,14 +26,14 @@
 
 
 static inline void
-write_32(addr_t P, Elf32_Word value)
+write_32(addr_t *P, Elf32_Word value)
 {
 	*(Elf32_Word*)P = value;
 }
 
 
 static inline void
-write_16(addr_t P, Elf32_Word value)
+write_16(addr_t *P, Elf32_Word value)
 {
 	// bits 16:29
 	*(Elf32_Half*)P = (Elf32_Half)value;
@@ -41,7 +41,7 @@
 
 
 static inline bool
-write_16_check(addr_t P, Elf32_Word value)
+write_16_check(addr_t *P, Elf32_Word value)
 {
 	// bits 15:0
 	if ((value & 0xffff0000) && (~value & 0xffff8000))
@@ -52,7 +52,7 @@
 
 
 static inline bool
-write_8(addr_t P, Elf32_Word value)
+write_8(addr_t *P, Elf32_Word value)
 {
 	// bits 7:0
 	*(uint8 *)P = (uint8)value;
@@ -61,7 +61,7 @@
 
 
 static inline bool
-write_8_check(addr_t P, Elf32_Word value)
+write_8_check(addr_t *P, Elf32_Word value)
 {
 	// bits 7:0
 	if ((value & 0xffffff00) && (~value & 0xffffff80))




More information about the Haiku-commits mailing list