Ethereal

Re: [Ethereal-dev] packet-rsvp.c

Home | Introduction | Download | Documentation | Lists | FAQ | Development | Wiki

Ethereal-dev: March 2002


On Sat, Mar 02, 2002 at 05:21:38AM +0100, Michael Tuexen wrote:
> please find attached a simple patch to packet-rsvp.c to make it compile
> on MacOS X.

MacOS X isn't necessarily the only OS that doesn't define "ulong".

Fortunately, there's a 32-bit unsigned integer data type that's defined
by GLib (which is present on *every* machine on which you can compile
Ethereal :-)) - "guint32".

I've checked in a change to use that (and to use "0x%08x", rather than
"0x%04lx", to print it, as

	1) "guint32" isn't an "unsigned long int" on any platform I know
	   of

and

	2) it's a 32-bit field used as a bit set, and should thus be
	   printed with 8 hex digits).



Powered by MHonArc 2.6.10