Loading...
--- xnu/xnu-344.32/libkern/c++/OSSerialize.cpp
+++ xnu/xnu-792.6.22/libkern/c++/OSSerialize.cpp
@@ -148,7 +148,7 @@
tag = 0;
length = 1;
- capacity = (inCapacity) ? round_page(inCapacity) : round_page(1);
+ capacity = (inCapacity) ? round_page_32(inCapacity) : round_page_32(1);
capacityIncrement = capacity;
// allocate from the kernel map so that we can safely map this data
@@ -173,7 +173,7 @@
OSSerialize *me = new OSSerialize;
if (me && !me->initWithCapacity(inCapacity)) {
- me->free();
+ me->release();
return 0;
}
@@ -197,7 +197,7 @@
return capacity;
// round up
- newCapacity = round_page(newCapacity);
+ newCapacity = round_page_32(newCapacity);
kern_return_t rc = kmem_realloc(kernel_map,
(vm_offset_t)data,
@@ -238,7 +238,7 @@
OSDefineMetaClassAndStructors(OSSerializer, OSObject)
OSSerializer * OSSerializer::forTarget( void * target,
- OSSerializerCallback callback, void * ref = 0 )
+ OSSerializerCallback callback, void * ref )
{
OSSerializer * thing;