/*
- * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2004,2007 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
__private_extern__ void
devtimer_retain(devtimer_ref timer)
{
- OSIncrementAtomic(&timer->dt_retain_count);
+ OSIncrementAtomic((SInt32 *)&timer->dt_retain_count);
return;
}
{
UInt32 old_retain_count;
- old_retain_count = OSDecrementAtomic(&timer->dt_retain_count);
+ old_retain_count = OSDecrementAtomic((SInt32 *)&timer->dt_retain_count);
switch (old_retain_count) {
case 0:
panic("devtimer_release: retain count is 0\n");