From 8fd3ee05600dd7d0e6434e7eb824932c52000ce3 Mon Sep 17 00:00:00 2001 From: Stephen Fisher 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. svn path=/trunk/; revision=21253 --- epan/dissectors/packet-iscsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-iscsi.c') diff --git a/epan/dissectors/packet-iscsi.c b/epan/dissectors/packet-iscsi.c index ca2c8f2842..c5c5dd2cdc 100644 --- a/epan/dissectors/packet-iscsi.c +++ b/epan/dissectors/packet-iscsi.c @@ -1603,11 +1603,11 @@ dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint off */ cdb_buf=ep_alloc(16+ahs_cdb_length); /* the 16 first bytes of the cdb */ - tvb_memcpy(tvb, (guint8*)cdb_buf, cdb_offset, 16); + tvb_memcpy(tvb, cdb_buf, cdb_offset, 16); /* the remainder of the cdb from the ahs */ - tvb_memcpy(tvb, (guint8*)cdb_buf+16, ahs_cdb_offset, ahs_cdb_length); + tvb_memcpy(tvb, cdb_buf+16, ahs_cdb_offset, ahs_cdb_length); - cdb_tvb = tvb_new_real_data((guint8*)cdb_buf, + cdb_tvb = tvb_new_real_data(cdb_buf, ahs_cdb_length+16, ahs_cdb_length+16); -- cgit v1.2.3