You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/12/29 05:45:30 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #5102: net/tcp(unbuffered): removed excessive overwrites of conn->sndseq

xiaoxiang781216 commented on a change in pull request #5102:
URL: https://github.com/apache/incubator-nuttx/pull/5102#discussion_r776161593



##########
File path: net/tcp/tcp_input.c
##########
@@ -737,12 +736,14 @@ static void tcp_input(FAR struct net_driver_s *dev, uint8_t domain,
             }
         }
 
+#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
       /* Update sequence number to the unacknowledge sequence number.  If
        * there is still outstanding, unacknowledged data, then this will
        * be beyond ackseq.
        */
 
-      sndseq = tcp_getsequence(conn->sndseq);
+      uint32_t sndseq = tcp_getsequence(conn->sndseq);

Review comment:
       need keep the line at line 687 since C89 doesn't support to define variables in the middle of code block.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org