Don't cast away constness.
authorGuy Harris <guy@alum.mit.edu>
Tue, 14 Jan 2014 04:01:59 +0000 (04:01 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 14 Jan 2014 04:01:59 +0000 (04:01 -0000)
svn path=/trunk/; revision=54760

epan/dissectors/packet-igrp.c

index 7cd3c8a3492bd4443dc85938e4678d65911f021c..77b0bb45c9a24c9e8f535482cfd45783f834f0e0 100644 (file)
@@ -103,7 +103,7 @@ static void dissect_igrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
     /* this is a ugly hack to find the first byte of the IP source address */
     if (pinfo->net_src.type == AT_IPv4) {
-      ipsrc = (guint8 *)pinfo->net_src.data;
+      ipsrc = (const guint8 *)pinfo->net_src.data;
       network = ipsrc[0];
     } else
       network = 0; /* XXX - shouldn't happen */