Use C style comments.In debug stataments cast various struct pointers to void* to

avoid printf warnings.misc warnings in etharp.
This commit is contained in:
jani
2002-12-17 09:41:16 +00:00
parent a071cbf86c
commit c0a8ef6f6f
6 changed files with 21 additions and 32 deletions

View File

@@ -615,7 +615,7 @@ struct pbuf *
pbuf_unref(struct pbuf *f)
{
struct pbuf *p, *q;
DEBUGF(PBUF_DEBUG, ("pbuf_unref: %p \n", f));
DEBUGF(PBUF_DEBUG, ("pbuf_unref: %p \n", (void*)f));
/* first pbuf is of type PBUF_REF? */
if (f->flags == PBUF_FLAG_REF)
{
@@ -641,7 +641,7 @@ pbuf_unref(struct pbuf *f)
/* de-allocate PBUF_REF */
pbuf_free(f);
f = p;
DEBUGF(PBUF_DEBUG, ("pbuf_unref: succesful %p \n", f));
DEBUGF(PBUF_DEBUG, ("pbuf_unref: succesful %p \n", (void *)f));
}
else
{

View File

@@ -314,7 +314,7 @@ tcp_listen(struct tcp_pcb *pcb)
#endif /* LWIP_CALLBACK_API */
/* workaround for compile error: assignment requires modifiable lvalue in TCP_REG */
#if LWIP_TCP_REG_COMPILE_ERROR
// place this pcb at the start the "listening pcbs" list
/* place this pcb at the start the "listening pcbs" list */
lpcb->next = tcp_listen_pcbs;
tcp_listen_pcbs = lpcb;
#else
@@ -753,7 +753,7 @@ tcp_kill_prio(u8_t prio)
}
if(inactive != NULL) {
DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB 0x%p (%ld)\n",
inactive, inactivity));
(void *)inactive, inactivity));
tcp_abort(inactive);
}
}
@@ -775,7 +775,7 @@ tcp_kill_timewait(void)
}
if(inactive != NULL) {
DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB 0x%p (%ld)\n",
inactive, inactivity));
(void *)inactive, inactivity));
tcp_abort(inactive);
}
}
@@ -966,7 +966,7 @@ tcp_pcb_purge(struct tcp_pcb *pcb)
if(pcb->unacked != NULL) {
DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->unacked\n"));
}
#if TCP_QUEUE_OOSEQ // LW
#if TCP_QUEUE_OOSEQ /* LW */
if(pcb->ooseq != NULL) {
DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n"));
}

View File

@@ -212,9 +212,9 @@ tcp_input(struct pbuf *p, struct netif *inp)
arrivals). */
if(prev != NULL) {
((struct tcp_pcb_listen *)prev)->next = lpcb->next;
// our successor is the remainder of the listening list
/* our successor is the remainder of the listening list */
lpcb->next = tcp_listen_pcbs;
// put this listening pcb at the head of the listening list
/* put this listening pcb at the head of the listening list */
tcp_listen_pcbs = lpcb;
}