Subject: Re: pkg/19092: xsreensaver "sonar" mis-computes ping list when long is 64 bits
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 11/18/2002 09:08:51
> When C type long contains 64 bits (actually, when it is larger than
> an IPv4 address), the "sonar" screensaver fails to skip the
> subnet broadcast address.
...
> +#if __alpha /* really 64-bit long */
> +typedef unsigned int ipaddr_t;
> +#else
> +typedef unsigned long ipaddr_t;
> +#endif
Just use
typedef uint32_t ipaddr_t;
Then it is machine independant.
There might even be a definition in one of the inet header files.
David
--
David Laight: david@l8s.co.uk