/[lwip]/lwip/src/core/tcp.c
ViewVC logotype

Diff of /lwip/src/core/tcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by jani, Tue Dec 17 09:41:16 2002 UTC revision 1.9 by jani, Wed Dec 18 10:40:01 2002 UTC
# Line 709  tcp_seg_copy(struct tcp_seg *seg) Line 709  tcp_seg_copy(struct tcp_seg *seg)
709    if(cseg == NULL) {    if(cseg == NULL) {
710      return NULL;      return NULL;
711    }    }
712    bcopy((const char *)seg, (char *)cseg, sizeof(struct tcp_seg));    memcpy((char *)cseg, (const char *)seg, sizeof(struct tcp_seg));
713    pbuf_ref(cseg->p);    pbuf_ref(cseg->p);
714    return cseg;    return cseg;
715  }  }
# Line 800  tcp_alloc(u8_t prio) Line 800  tcp_alloc(u8_t prio)
800      }      }
801    }    }
802    if(pcb != NULL) {    if(pcb != NULL) {
803      bzero(pcb, sizeof(struct tcp_pcb));      memset(pcb, 0, sizeof(struct tcp_pcb));
804      pcb->prio = TCP_PRIO_NORMAL;      pcb->prio = TCP_PRIO_NORMAL;
805      pcb->snd_buf = TCP_SND_BUF;      pcb->snd_buf = TCP_SND_BUF;
806      pcb->snd_queuelen = 0;      pcb->snd_queuelen = 0;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26