From: Duncan Hare <duncanch...@yahoo.com>

Too long a line in wget, line 386
Embedded blanks and tabs in clarifying comments in tcp.c

Signed-off-by: Duncan Hare <duncanch...@yahoo.com>
---

Changes in v7: None

 net/tcp.c  | 14 +++++++-------
 net/wget.c |  3 ++-
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/net/tcp.c b/net/tcp.c
index 612a6a4b7d..5ae2382179 100644
--- a/net/tcp.c
+++ b/net/tcp.c
@@ -23,7 +23,7 @@
 #include <environment.h>
 #include <errno.h>
 #include <net.h>
-#include <net/tcp.h>
+#include "tcp.h"
 #if defined(CONFIG_CMD_WGET)
 #include "net/wget.h"
 #endif
@@ -199,10 +199,10 @@ int net_set_ack_options(union tcp_build_pkt *b)
        }
 
        /*
-       * TCP lengths are stored as a rounded up number of 32 bit words
-       * Add 3 to length round up, rounded, then divided into the length
-       * in 32 bit words.
-       */
+        * TCP lengths are stored as a rounded up number of 32 bit words
+        * Add 3 to length round up, rounded, then divided into the length
+        * in 32 bit words.
+        */
 
        b->sack.hdr.tcp_hlen = (((TCP_HDR_SIZE + TCP_TSOPT_SIZE
                                + tcp_lost.len + 3)  >> 2) << 4);
@@ -210,7 +210,7 @@ int net_set_ack_options(union tcp_build_pkt *b)
        /*
         * This returns the actual rounded up length of the
         * TCP header to add to the total packet length
-       */
+        */
 
        return b->sack.hdr.tcp_hlen >> 2;
 }
@@ -703,7 +703,7 @@ void rxhand_tcp_f(union tcp_build_pkt *b, unsigned int 
pkt_len)
         * its information is pointed to by the packet pointer.
         *
         * in the typedef
-        *      void rxhand_tcp(uchar *pkt, unsigned int dport,
+        *      void rxhand_tcp(uchar *pkt, unsigned int dport,
         *                      struct in_addr sip, unsigned int sport,
         *                      unsigned int len);
         * *pkt is the pointer to the payload
diff --git a/net/wget.c b/net/wget.c
index f7923e35c8..5429a1f7b1 100644
--- a/net/wget.c
+++ b/net/wget.c
@@ -391,7 +391,8 @@ void wget_start(void)
                our_net.s_addr = net_ip.s_addr & net_netmask.s_addr;
                server_net.s_addr = net_server_ip.s_addr & net_netmask.s_addr;
                if (our_net.s_addr != server_net.s_addr)
-                       debug_cond(DEBUG_WGET, "wget: sending through gateway 
%pI4",
+                       debug_cond(DEBUG_WGET,
+                                  "wget: sending through gateway %pI4",
                                   &net_gateway);
        }
        debug_cond(DEBUG_WGET, "URL '%s\n", image_url);
-- 
2.11.0

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to