]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/storage/Config/RandRWC.nc
turn on safe compilation for some modules
[tinyos-2.x.git] / apps / tests / storage / Config / RandRWC.nc
index c286f9918331279a0046d07b8fa5700adee2d1b8..6076213422c74ae9b074d05f4d2ad218ea808a69 100644 (file)
@@ -8,12 +8,12 @@
  * 94704.  Attention:  Intel License Inquiry.
  */
 /**
- * Log storage test application. Does a pattern of random reads and
+ * Config storage test application. Does a pattern of random reads and
  * writes, based on mote id. See README.txt for more details.
  *
  * @author David Gay
  */
-module RandRWC {
+module RandRWC @safe() {
   uses {
     interface Boot;
     interface Leds;
@@ -70,7 +70,7 @@ implementation {
   }
   
   void report(error_t e) {
-    uint8_t *msg = call AMSend.getPayload(&reportmsg);
+    uint8_t *msg = call AMSend.getPayload(&reportmsg, 1);
 
     msg[0] = e;
     if (call AMSend.send(AM_BROADCAST_ADDR, &reportmsg, 1) != SUCCESS)