IOReturn Ambien::message(UInt32 type, IOService *provider, void *arg)
{
- unsigned int argi = (unsigned int)arg;
+ unsigned int argi = (unsigned int)(unsigned long)/* screw off, it's a bitmask, not a pointer */arg;
if (type == kIOPMMessageClamshellStateChange)
{