From cf114c1124b3aa4dccc4e618820a14dd881637c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Wed, 24 Aug 2011 06:42:40 +0000 Subject: Fix a warning by changing a pointer type. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit text2pcap.c: In function ‘parse_token’: text2pcap.c:1076: warning: cast from pointer to integer of different size text2pcap.c:1076: warning: cast from pointer to integer of different size svn path=/trunk/; revision=38702 --- text2pcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text2pcap.c') diff --git a/text2pcap.c b/text2pcap.c index a2c39e4d45..c36ce4f766 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -205,7 +205,7 @@ static char *ts_fmt = NULL; static struct tm timecode_default; static char new_date_fmt = 0; -static char* pkt_lnstart; +static unsigned char* pkt_lnstart; /* Input file */ static const char *input_filename; @@ -1073,7 +1073,7 @@ parse_token (token_t token, char *str) we should find out the largest tail of s1 matches the head of s2, it means the matched part in tail is the ASCII dump of the head byte. These matched should be rollback */ - line_size = curr_offset-((int)pkt_lnstart-(int)packet_buf); + line_size = curr_offset-(pkt_lnstart-packet_buf); s2 = (char*)malloc((line_size+1)/4+1); /* gather the possible pattern */ for(i=0; i<(line_size+1)/4; i++) { -- cgit v1.2.3