]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
fixed more unused variables
authorSimon Goldschmidt <goldsimon@gmx.de>
Mon, 14 Jan 2013 20:06:13 +0000 (21:06 +0100)
committerSimon Goldschmidt <goldsimon@gmx.de>
Mon, 14 Jan 2013 20:06:13 +0000 (21:06 +0100)
src/core/tcp_out.c

index 10d5b3045dddd8d437560761dd4c1f6d993a8676..d66221784eab4d419ee329f5aea5c60ad2d830cf 100644 (file)
@@ -1377,7 +1377,9 @@ void
 tcp_keepalive(struct tcp_pcb *pcb)
 {
   struct pbuf *p;
+#if CHECKSUM_GEN_TCP\r
   struct tcp_hdr *tcphdr;
+#endif /* CHECKSUM_GEN_TCP */\r
 
   LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: sending KEEPALIVE probe to "));
   ipX_addr_debug_print(PCB_ISIPV6(pcb), TCP_DEBUG, &pcb->remote_ip);
@@ -1392,10 +1394,12 @@ tcp_keepalive(struct tcp_pcb *pcb)
                 ("tcp_keepalive: could not allocate memory for pbuf\n"));
     return;
   }
+#if CHECKSUM_GEN_TCP\r
   tcphdr = (struct tcp_hdr *)p->payload;
 
   tcphdr->chksum = ipX_chksum_pseudo(PCB_ISIPV6(pcb), p, IP_PROTO_TCP, p->tot_len,
       &pcb->local_ip, &pcb->remote_ip);
+#endif /* CHECKSUM_GEN_TCP */\r
   TCP_STATS_INC(tcp.xmit);
 
   /* Send output to IP */