[Pcsclite-cvs-commit] r1723 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Mon Nov 21 13:13:31 UTC 2005


Author: rousseau
Date: 2005-11-21 13:13:30 +0000 (Mon, 21 Nov 2005)
New Revision: 1723

Modified:
   trunk/PCSC/src/powermgt_macosx.c
Log:
PMPowerRegistrationThread(): use 0 instead of NULL since
IORegisterForSystemPower() returns a number and not a pointer


Modified: trunk/PCSC/src/powermgt_macosx.c
===================================================================
--- trunk/PCSC/src/powermgt_macosx.c	2005-11-21 13:05:20 UTC (rev 1722)
+++ trunk/PCSC/src/powermgt_macosx.c	2005-11-21 13:13:30 UTC (rev 1723)
@@ -77,7 +77,7 @@
 
     root_port = IORegisterForSystemPower (0,&notify,PMPowerEventCallback,&anIterator);
   
-    if ( root_port == NULL ) {
+    if ( root_port == 0 ) {
             Log1(PCSC_LOG_ERROR, "IORegisterForSystemPower failed");
             return;
     }




More information about the Pcsclite-cvs-commit mailing list