From 9edf6cd8ec79130028673bfe15dbf3f6eff0a6c1 Mon Sep 17 00:00:00 2001 From: liang_mike Date: Thu, 24 Jul 2008 02:02:58 +0000 Subject: [PATCH] Fix safe tinyos warnings --- tos/lib/tosthreads/csystem/CAMRadioP.nc | 4 ++-- tos/lib/tosthreads/csystem/CAMSerialP.nc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tos/lib/tosthreads/csystem/CAMRadioP.nc b/tos/lib/tosthreads/csystem/CAMRadioP.nc index 2dc7d63a..f9d12e12 100644 --- a/tos/lib/tosthreads/csystem/CAMRadioP.nc +++ b/tos/lib/tosthreads/csystem/CAMRadioP.nc @@ -75,7 +75,7 @@ implementation { call AMPacket.setDestination(amsg, addr); } void amRadioSetSource(message_t* amsg, am_addr_t addr) @C() @spontaneous() { - return call AMPacket.setSource(amsg, addr); + call AMPacket.setSource(amsg, addr); } bool amRadioIsForMe(message_t* amsg) @C() @spontaneous() { return call AMPacket.isForMe(amsg); @@ -90,7 +90,7 @@ implementation { return call AMPacket.group(amsg); } void amRadioSetGroup(message_t* amsg, am_group_t grp) @C() @spontaneous() { - return call AMPacket.setGroup(amsg, grp); + call AMPacket.setGroup(amsg, grp); } void radioClear(message_t* msg) @C() @spontaneous() { call Packet.clear(msg); diff --git a/tos/lib/tosthreads/csystem/CAMSerialP.nc b/tos/lib/tosthreads/csystem/CAMSerialP.nc index fea5963a..c0a7bba9 100644 --- a/tos/lib/tosthreads/csystem/CAMSerialP.nc +++ b/tos/lib/tosthreads/csystem/CAMSerialP.nc @@ -67,7 +67,7 @@ implementation { call AMPacket.setDestination(amsg, addr); } void amSerialSetSource(message_t* amsg, am_addr_t addr) @C() @spontaneous() { - return call AMPacket.setSource(amsg, addr); + call AMPacket.setSource(amsg, addr); } bool amSerialIsForMe(message_t* amsg) @C() @spontaneous() { return call AMPacket.isForMe(amsg); @@ -82,7 +82,7 @@ implementation { return call AMPacket.group(amsg); } void amSerialSetGroup(message_t* amsg, am_group_t grp) @C() @spontaneous() { - return call AMPacket.setGroup(amsg, grp); + call AMPacket.setGroup(amsg, grp); } void serialClear(message_t* msg) @C() @spontaneous() { call Packet.clear(msg); -- 2.39.2