mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 03:30:01 +00:00
Remove commented-out code
This commit is contained in:
parent
1634acf2c4
commit
f49b161795
@ -287,16 +287,8 @@ output_sniffer(int mac_status)
|
||||
static void
|
||||
sniffprint(char *prefix, int seqno)
|
||||
{
|
||||
/* const linkaddr_t *sender; */
|
||||
/* const linkaddr_t *receiver; */
|
||||
const linkaddr_t *esender;
|
||||
/* const linkaddr_t *ereceiver; */
|
||||
|
||||
/* sender = packetbuf_addr(PACKETBUF_ADDR_SENDER); */
|
||||
/* receiver = packetbuf_addr(PACKETBUF_ADDR_RECEIVER); */
|
||||
esender = packetbuf_addr(PACKETBUF_ADDR_ESENDER);
|
||||
/* ereceiver = packetbuf_addr(PACKETBUF_ADDR_ERECEIVER); */
|
||||
|
||||
|
||||
printf("%lu %s %d %u %d %d %d.%d %u %u\n",
|
||||
clock_time(),
|
||||
|
@ -332,14 +332,10 @@ static void
|
||||
parse_incoming_packet(const uint8_t *buf, int len)
|
||||
{
|
||||
int numregs;
|
||||
/*int flags;*/
|
||||
int i;
|
||||
int bufptr;
|
||||
|
||||
numregs = buf[MSG_NUMREGS_OFFSET];
|
||||
/*flags = buf[MSG_FLAGS_OFFSET];*/
|
||||
|
||||
/* printf("parse_incoming_packet Numregs %d flags %d\n", numregs, flags);*/
|
||||
|
||||
bufptr = MSG_ADDRS_OFFSET;
|
||||
for(i = 0; i < numregs; ++i) {
|
||||
|
@ -12,7 +12,6 @@
|
||||
/* MCUSR is a deprecated name but older avr-libc versions may define it */
|
||||
#if !defined (MCUCSR)
|
||||
# if defined (MCUSR)
|
||||
/*# warning *** MCUCSR not defined, using MCUSR instead ****/
|
||||
# define MCUCSR MCUSR
|
||||
# endif
|
||||
#endif
|
||||
|
@ -67,7 +67,6 @@
|
||||
/* MCUSR is a deprecated name but older avr-libc versions may define it */
|
||||
#if !defined (MCUCSR)
|
||||
# if defined (MCUSR)
|
||||
/*# warning *** MCUCSR not defined, using MCUSR instead ****/
|
||||
# define MCUCSR MCUSR
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user