Ethereal-dev: [Ethereal-dev] Re: [Ethereal-cvs] rev 12842: /trunk/epan/dissectors/: packet-m2p

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

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Mon, 27 Dec 2004 15:10:35 +0100
Dear all,

can someone explain me the difference between:

typedef enum {
  M2PA_V02 = 1,
  M2PA_V08 = 2,
  M2PA_V12 = 3
} Version_Type;

static Version_Type m2pa_version = M2PA_V12;
...
prefs_register_enum_preference(m2pa_module, "version", "M2PA version", "Version used by Ethereal",
                               (gint *)&m2pa_version,
                               m2pa_version_options, FALSE);

and
typedef enum {
  M2PA_V02 = 1,
  M2PA_V08 = 2,
  M2PA_V12 = 3
} Version_Type;
static gint m2pa_version = M2PA_V12;

prefs_register_enum_preference(m2pa_module, "version", "M2PA version", "Version used by Ethereal",
                               &m2pa_version,
                               m2pa_version_options, FALSE);

In both cases the argument of prefs_register_enum_preference is a pointer to a gint.
Why is it necessary to change the code?

Best regards
Michael


On Dec 27, 2004, at 14:17 Uhr, ulfl@xxxxxxxxxxxx wrote:

User: ulfl
Date: 2004/12/27 07:17 AM

Log:
 Again, some warnings removed.

Directory: /trunk/epan/dissectors/
  Changes    Path             Action
  +2 -2      packet-m2pa.c    Modified
  +2 -2      packet-m3ua.c    Modified
  +6 -6      packet-mtp3.c    Modified
  +2 -2      packet-sua.c     Modified
  +2 -2      packet-tcap.c    Modified

Directory: /trunk/epan/
  Changes    Path             Action
  +5 -1      addr_resolv.c    Modified

Directory: /trunk/gtk/
  Changes    Path                  Action
  +5 -5      decode_as_dcerpc.c    Modified
  +1 -1      decode_as_dlg.c       Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=12842&view=rev

_______________________________________________
Ethereal-cvs mailing list
Ethereal-cvs@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-cvs