]> Joshua Wise's Git repositories - ambien.git/blobdiff - Ambien.cpp
Enable compilation for PowerPC and x86_64.
[ambien.git] / Ambien.cpp
index f6d77105382a6c4f6f31e4400fc5522b039d3ac1..f81c5c17c262045ebee32d23c40e14479fbd9112 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.020931 seconds and 4 git commands to generate.