Fixed compiler warnings to make code compile with gcc's -pedantic switch
This commit is contained in:
parent
607d27e0c6
commit
1e1e44a3f8
42 changed files with 313 additions and 286 deletions
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: queuebuf.c,v 1.9 2007/05/15 08:09:21 adamdunkels Exp $
|
||||
* $Id: queuebuf.c,v 1.10 2007/11/17 18:05:21 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -110,9 +110,9 @@ queuebuf_new_from_rimebuf(void)
|
|||
#if QUEUEBUF_STATS
|
||||
++queuebuf_ref_len;
|
||||
#if NETSIM
|
||||
node_log("%d %d\n",
|
||||
/* node_log("%d %d\n",
|
||||
queuebuf_len,
|
||||
queuebuf_ref_len);
|
||||
queuebuf_ref_len);*/
|
||||
#endif /* NETSIM */
|
||||
#endif /* QUEUEBUF_STATS */
|
||||
rbuf->len = rimebuf_datalen();
|
||||
|
@ -133,9 +133,9 @@ queuebuf_new_from_rimebuf(void)
|
|||
return NULL;
|
||||
}
|
||||
#if NETSIM
|
||||
node_log("%d %d\n",
|
||||
/* node_log("%d %d\n",
|
||||
queuebuf_len,
|
||||
queuebuf_ref_len);
|
||||
queuebuf_ref_len);*/
|
||||
#endif /* NETSIM */
|
||||
#endif /* QUEUEBUF_STATS */
|
||||
buf->len = rimebuf_copyto(buf->data);
|
||||
|
@ -154,9 +154,9 @@ queuebuf_free(struct queuebuf *buf)
|
|||
#if QUEUEBUF_STATS
|
||||
--queuebuf_len;
|
||||
#if NETSIM
|
||||
node_log("%d %d\n",
|
||||
/* node_log("%d %d\n",
|
||||
queuebuf_len,
|
||||
queuebuf_ref_len);
|
||||
queuebuf_ref_len);*/
|
||||
#endif /* NETSIM */
|
||||
#endif /* QUEUEBUF_STATS */
|
||||
} else if(memb_inmemb(&refbufmem, buf)) {
|
||||
|
@ -164,9 +164,9 @@ queuebuf_free(struct queuebuf *buf)
|
|||
#if QUEUEBUF_STATS
|
||||
--queuebuf_ref_len;
|
||||
#if NETSIM
|
||||
node_log("%d %d\n",
|
||||
/* node_log("%d %d\n",
|
||||
queuebuf_len,
|
||||
queuebuf_ref_len);
|
||||
queuebuf_ref_len);*/
|
||||
#endif /* NETSIM */
|
||||
#endif /* QUEUEBUF_STATS */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue