]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
Have all Internet-checksum computing routines return a uint16_t.
[tcpdump] / print-tcp.c
index 1886044b25e2330975e2f5d39c031692112d6223..ef7bcf6c4dbf5dccb587a08100f24ecac0c540fd 100644 (file)
@@ -136,7 +136,7 @@ static const struct tok tcp_option_values[] = {
         { 0, NULL }
 };
 
-static int
+static uint16_t
 tcp_cksum(netdissect_options *ndo,
           const struct ip *ip,
           const struct tcphdr *tp,
@@ -146,7 +146,7 @@ tcp_cksum(netdissect_options *ndo,
                                 IPPROTO_TCP);
 }
 
-static int
+static uint16_t
 tcp6_cksum(netdissect_options *ndo,
            const struct ip6_hdr *ip6,
            const struct tcphdr *tp,