From 7cd0417af555a78b19c6909a40d1867e0fe9a063 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Wed, 5 Dec 2012 15:56:36 +0000 Subject: Fix numerous instances of a variable/parameter name "shadowing" a library function name; (At least some (gcc ?) compilers give a "shadow" warning for these). svn path=/trunk/; revision=46402 --- ui/text_import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/text_import.c') diff --git a/ui/text_import.c b/ui/text_import.c index 45d48bae8c..690e6e8f00 100644 --- a/ui/text_import.c +++ b/ui/text_import.c @@ -512,7 +512,8 @@ write_current_packet (void) memset(&packet_buf[prefix_length+curr_offset], 0, eth_trailer_length); } - HDR_TCP.seq_num = g_htonl(g_ntohl(HDR_TCP.seq_num) + curr_offset); + HDR_TCP.seq_num = g_ntohl(HDR_TCP.seq_num) + curr_offset; + HDR_TCP.seq_num = g_htonl(HDR_TCP.seq_num); { /* Write the packet */ -- cgit v1.2.1