diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-04-15 00:18:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-04-15 00:18:38 +0000 |
commit | 1bf8373b9f432bd12744bed32eb71fa2116a02b2 (patch) | |
tree | 5cbd5de19e9b36970a0c12e920e24f401a6a3344 /packet-tcp.c | |
parent | 4459d9f0a9706a576942da662b04837c0f63ead7 (diff) | |
download | wireshark-1bf8373b9f432bd12744bed32eb71fa2116a02b2.tar.gz wireshark-1bf8373b9f432bd12744bed32eb71fa2116a02b2.tar.bz2 wireshark-1bf8373b9f432bd12744bed32eb71fa2116a02b2.zip |
Add some braces to squelch a GCC warning.
svn path=/trunk/; revision=10602
Diffstat (limited to 'packet-tcp.c')
-rw-r--r-- | packet-tcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index 9952a8b899..2814c0604a 100644 --- a/packet-tcp.c +++ b/packet-tcp.c @@ -1,7 +1,7 @@ /* packet-tcp.c * Routines for TCP packet disassembly * - * $Id: packet-tcp.c,v 1.226 2004/04/08 05:09:28 sahlberg Exp $ + * $Id: packet-tcp.c,v 1.227 2004/04/15 00:18:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2683,12 +2683,13 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } } } - if (tcph->th_flags & TH_ACK) + if (tcph->th_flags & TH_ACK) { if(tcp_relative_seq){ proto_tree_add_uint_format(tcp_tree, hf_tcp_ack, tvb, offset + 8, 4, tcph->th_ack, "Acknowledgement number: %u (relative ack number)", tcph->th_ack); } else { proto_tree_add_uint(tcp_tree, hf_tcp_ack, tvb, offset + 8, 4, tcph->th_ack); } + } proto_tree_add_uint_format(tcp_tree, hf_tcp_hdr_len, tvb, offset + 12, 1, tcph->th_hlen, "Header length: %u bytes", tcph->th_hlen); tf = proto_tree_add_uint_format(tcp_tree, hf_tcp_flags, tvb, offset + 13, 1, |