]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/adc/AdcStreamP.nc
turn on safe compilation for some modules
[tinyos-2.x.git] / tos / chips / atm128 / adc / AdcStreamP.nc
index 7d3701cc59e4517b7f727582f002fdeece214924..b5a844f44bead883422af7de1c431c16e116ed04 100644 (file)
@@ -43,7 +43,7 @@
  */
 #include "Timer.h"
 
-module AdcStreamP {
+module AdcStreamP @safe() {
   provides {
     interface Init @atleastonce();
     interface ReadStream<uint16_t>[uint8_t client];
@@ -76,7 +76,7 @@ implementation {
 
   norace uint16_t count;
   norace uint16_t * COUNT_NOK(count) buffer; 
-  norace uint16_t * FAT_NOK(buffer, buffer+count) pos;
+  norace uint16_t * BND_NOK(buffer, buffer+count) pos;
   norace uint32_t now, period;
 
 
@@ -144,7 +144,7 @@ implementation {
 
     atomic entry = bufferQueue[c];
     for (; entry; entry = entry->next){
-      uint16_t tmp_count = entry->count;
+      uint16_t tmp_count __DEPUTY_UNUSED__ = entry->count;
       signal ReadStream.bufferDone[c](FAIL, TCAST(uint16_t * COUNT_NOK(tmp_count),entry), entry->count);
     }