Ethereal-dev: Re: [ethereal-dev] -Wall fixes for FreeBSD

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Mon, 2 Aug 1999 20:53:52 -0700
> Just some simple fixes to make the FreeBSD egcs happy, this commit
> should be a no-brainer.

"packet-isakmp.c", in the CVS tree, is already changed to use "%u" rather
than "%lu" to print the result of "pntohl()" - the "l" nonwithstanding,
it returns a "guint32", which is an "unsigned int".

I added to your patch to "packet-ipv6.c" a cast of the result of
"ntohl()" to "unsigned long", so that it's type-correct even if
"ntohl()" doesn't return a "long" (which it might not on at least some
64-bit platforms).