aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-03-28 21:55:11 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-03-28 21:55:11 +0000
commit8fd3ee05600dd7d0e6434e7eb824932c52000ce3 (patch)
treedc1df6288600e883ed53ac7e43a38a2d03abb9f3 /text2pcap.c
parent32780e71e8ce8c8fd1898cbcb62f6bc8a59341f3 (diff)
Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/text2pcap.c b/text2pcap.c
index 4459da1fbf..ea058f2249 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -696,7 +696,7 @@ append_to_preamble(char *str)
if (toklen != 0) {
if (packet_preamble_len + toklen > PACKET_PREAMBLE_MAX_LEN)
return; /* no room to add the token to the preamble */
- strcpy((char*)&packet_preamble[packet_preamble_len], str);
+ strcpy(&packet_preamble[packet_preamble_len], str);
packet_preamble_len += toklen;
}
}
@@ -731,7 +731,7 @@ parse_preamble (void)
/* Ensure preamble has more than two chars before atempting to parse.
* This should cover line breaks etc that get counted.
*/
- if ( strlen((char*)packet_preamble) > 2 ) {
+ if ( strlen(packet_preamble) > 2 ) {
/*
* Initialize to the Epoch, just in case not all fields
* of the date and time are specified.
@@ -747,7 +747,7 @@ parse_preamble (void)
timecode.tm_isdst = -1;
/* Get Time leaving subseconds */
- subsecs = strptime( (char*)packet_preamble, ts_fmt, &timecode );
+ subsecs = strptime( packet_preamble, ts_fmt, &timecode );
if (subsecs != NULL) {
/* Get the long time from the tm structure */
ts_sec = (gint32)mktime( &timecode );