diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-24 06:42:40 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-24 06:42:40 +0000 |
commit | cf114c1124b3aa4dccc4e618820a14dd881637c8 (patch) | |
tree | 0c933d93a19a8325a2521aaf4626342b9ba6ce52 /text2pcap.c | |
parent | cd850e3404fbabd80a9e3abecc3121e4adf90ed7 (diff) | |
download | wireshark-cf114c1124b3aa4dccc4e618820a14dd881637c8.tar.gz wireshark-cf114c1124b3aa4dccc4e618820a14dd881637c8.tar.bz2 wireshark-cf114c1124b3aa4dccc4e618820a14dd881637c8.zip |
Fix a warning by changing a pointer type.
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
Diffstat (limited to 'text2pcap.c')
-rw-r--r-- | text2pcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++) { |