X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsystem%2FStateImplP.nc;h=edcde832a1f86eadcf8921ebe10f2addb29a5b74;hb=20150f888460e06a59b649ff19da9682768ab3b7;hp=cfd5d5d47e23c018d9531a3b53069aaa195f0f52;hpb=8629f91dd20659161e8b7607e57e9b52d54e5455;p=tinyos-2.x.git diff --git a/tos/system/StateImplP.nc b/tos/system/StateImplP.nc index cfd5d5d4..edcde832 100644 --- a/tos/system/StateImplP.nc +++ b/tos/system/StateImplP.nc @@ -61,7 +61,7 @@ #include "State.h" -module StateImplP { +module StateImplP @safe() { provides { interface Init; interface State[uint8_t id]; @@ -79,10 +79,6 @@ implementation { /***************** Init Commands ****************/ command error_t Init.init() { - int i; - for(i = 0; i < uniqueCount(UQ_STATE); i++) { - state[i] = S_IDLE; - } return SUCCESS; }