From 915762792536e1904394f58ca4962760d84970ee Mon Sep 17 00:00:00 2001 From: sfisher Date: Wed, 28 Mar 2007 21:55:11 +0000 Subject: 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21253 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-kismet.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-kismet.c') diff --git a/epan/dissectors/packet-kismet.c b/epan/dissectors/packet-kismet.c index b6aa11f8c2..80439657e6 100644 --- a/epan/dissectors/packet-kismet.c +++ b/epan/dissectors/packet-kismet.c @@ -183,7 +183,7 @@ dissect_kismet(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) * *KISMET: {Version} {Start time} \001{Server name}\001 {Build Revision} * two fields left undocumented: {???} {?ExtendedVersion?} */ - if (!strncmp((char*)reqresp, "*KISMET", 7)) { + if (!strncmp(reqresp, "*KISMET", 7)) { offset += next_token - line; linelen -= next_token - line; line = next_token; @@ -236,7 +236,7 @@ dissect_kismet(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) /* * *TIME: {Time} */ - if (!strncmp((char*)reqresp, "*TIME", 5)) { + if (!strncmp(reqresp, "*TIME", 5)) { time_t t; char *ptr; @@ -278,10 +278,10 @@ dissect_kismet(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) static gboolean response_is_continuation(const guchar * data) { - if (!strncmp((char*)data, "*", 1)) + if (!strncmp(data, "*", 1)) return FALSE; - if (!strncmp((char*)data, "!", 1)) + if (!strncmp(data, "!", 1)) return FALSE; return TRUE; -- cgit v1.2.3