Wireshark-dev: Re: [Wireshark-dev] Anonymous union in epan/dissectors/packet-scsi-osd.c not val
From: "ronnie sahlberg" <[email protected]>
Date: Mon, 6 Nov 2006 09:31:32 +0000
please test latest svn    i have changed it to not use anonymous unions/structs

On 11/5/06, Albert Chin <[email protected]> wrote:
On Solaris 2.6, compiling 0.99.4 with the Sun C compiler fails because
anonymous unions are not valid. epan/dissectors/packet-scsi-osd.c has:
  typedef struct _scsi_osd_extra_data_t {
   guint16 svcaction;
   guint8  gsatype;
   union {
    struct { /* gsatype: attribute list */
     guint32 get_list_length;
     guint32 get_list_offset;
     guint32 get_list_allocation_length;
     guint32 retreived_list_offset;
     guint32 set_list_length;
     guint32 set_list_offset;
  } scsi_osd_extra_data_t;

epan/emem.h had a similar problem awhile ago.

Patch attached.

albert chin ([email protected])