Enable compilation for PowerPC and x86_64.
[ambien.git] / Ambien.cpp
index f6d7710..f81c5c1 100644 (file)
@@ -109,7 +109,7 @@ IOWorkLoop* Ambien::getWorkLoop()
 
 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)
        {
This page took 0.050351 seconds and 4 git commands to generate.