From 0ad53183e104083ebdf6c4d6600a21a851ccb99a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 24 Jun 2015 14:52:57 -0600 Subject: [PATCH] Networking: Fix a compile problem introduced in NuttX-7.6 when CONFIG_NET_SENDFILE=y --- net/socket/net_sendfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/socket/net_sendfile.c b/net/socket/net_sendfile.c index 749ee71e99..61548264ae 100644 --- a/net/socket/net_sendfile.c +++ b/net/socket/net_sendfile.c @@ -118,7 +118,7 @@ struct sendfile_s * Check for send timeout. * * Parameters: - * pstate send state structure + * pstate - send state structure * * Returned Value: * TRUE:timeout FALSE:no timeout @@ -196,7 +196,7 @@ static uint16_t ack_interrupt(FAR struct net_driver_s *dev, FAR void *pvconn, * is the number of bytes to be acknowledged. */ - pstate->snd_acked = tcp_getsequence(TCPBUF->ackno) - pstate->snd_isn; + pstate->snd_acked = tcp_getsequence(tcp->ackno) - pstate->snd_isn; nllvdbg("ACK: acked=%d sent=%d flen=%d\n", pstate->snd_acked, pstate->snd_sent, pstate->snd_flen);