]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
fixed the warning: : pointer targets in passing argument 1 of 'TimeSyncP$0$GlobalTime...
authorsallai <sallai>
Fri, 27 Jun 2008 18:55:43 +0000 (18:55 +0000)
committersallai <sallai>
Fri, 27 Jun 2008 18:55:43 +0000 (18:55 +0000)
tos/lib/ftsp/TimeSyncP.nc

index 3a5824ae06a8a457c9d2a7bec9f8515768607580..ba96e92d1f797af0cb04e0c3180e8e2f937becef 100644 (file)
@@ -222,7 +222,7 @@ implementation
 
         // clear table if the received entry's been inconsistent for some time
         timeError = msg->localTime;
-        call GlobalTime.local2Global(&timeError);
+        call GlobalTime.local2Global((uint32_t*)(&timeError));
         timeError -= msg->globalTime;
         if( (is_synced() == SUCCESS) &&
             (timeError > ENTRY_THROWOUT_LIMIT || timeError < -ENTRY_THROWOUT_LIMIT))