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

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 1 Mar 2002 23:22:34 -0800
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).