Ethereal-dev: [Ethereal-dev] 0.10.12 build problems on IRIX 6.5

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Thu, 4 Aug 2005 16:00:32 -0500
epan/dissectors/packet-ms-mms.c makes uses of some C99'isms which
prevent compilation on IRIX 6.5 with the SGI C compiler. Patch
attached to fix.

-- 
albert chin (china@xxxxxxxxxxxxxxxxxx)
--- epan/dissectors/packet-ms-mms.c.orig	Thu Aug  4 14:51:21 2005
+++ epan/dissectors/packet-ms-mms.c	Thu Aug  4 15:04:55 2005
@@ -763,8 +763,15 @@
         /* Set the dissector for indicated conversation */
         if (pt != PT_NONE)
         {
-            guint8 octets[4] = {ipaddr[0], ipaddr[1], ipaddr[2], ipaddr[3]};
-            address addr = {AT_IPv4, 4, octets};
+            guint8 octets[4];
+            address addr;
+            octets[0] = ipaddr[0];
+            octets[1] = ipaddr[1];
+            octets[2] = ipaddr[2];
+            octets[3] = ipaddr[3];
+            addr.type = AT_IPv4;
+            addr.len = 4;
+            addr.data = octets;
             msmms_data_add_address(pinfo, &addr, pt, port);
         }
     }