]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
add some pseudo-COUNT annotations to suppress Deputy warnings
authoridgay <idgay>
Thu, 10 Jul 2008 18:59:47 +0000 (18:59 +0000)
committeridgay <idgay>
Thu, 10 Jul 2008 18:59:47 +0000 (18:59 +0000)
tos/lib/net/ctp/Ctp.h
tos/lib/net/drip/DisseminationEngine.h

index b821fca88cce83a8fb3ca3bf905a2fd492766935..7d3b19b51a668bdf690d9842c3afd7975e578c4d 100644 (file)
@@ -69,14 +69,14 @@ typedef nx_struct {
   nx_am_addr_t        origin;
   nx_uint8_t          originSeqNo;
   nx_collection_id_t  type;
-  nx_uint8_t          data[0];
+  nx_uint8_t (COUNT(0) data)[0]; // Deputy place-holder, field will probably be removed when we Deputize Ctp
 } ctp_data_header_t;
 
 typedef nx_struct {
   nx_ctp_options_t    options;
   nx_am_addr_t        parent;
   nx_uint16_t         etx;
-  nx_uint8_t          data[0];
+  nx_uint8_t (COUNT(0) data)[0]; // Deputy place-holder, field will probably be removed when we Deputize Ctp
 } ctp_routing_header_t;
 
 #endif
index 18f101aaaf3b4b501fc8d8b10002e72e9a432340..0edd29bdd2cebfe78c490b152f365ca8ec17499b 100644 (file)
@@ -46,7 +46,7 @@ enum {
 typedef nx_struct dissemination_message {
   nx_uint16_t key;
   nx_uint32_t seqno;
-  nx_uint8_t data[0];
+  nx_uint8_t (COUNT(0) data)[0]; // Deputy place-holder, field will probably be removed when we Deputize Drip
 } dissemination_message_t;
 
 typedef nx_struct dissemination_probe_message {