Re: port limitation to int16
Johannes Wienke <[email protected]> Thu, 08 Aug 2013 17:15:18 +0200
| Newsgroups | gmane.network.spread.user |
|---|---|
| Message-ID | <[email protected]> |
Hi
On 08/08/2013 04:40 PM, John Schultz wrote:
> Looks like we had roughly the same idea! :)
>
> I think changing the underlying types that hold ports is probably safer because if somewhere someone does:
>
> int16u port;
>
> ...
>
> printf("%d", port);
>
> I think C does the right thing.
Thanks for the patch.
Right, I missed the two other definitions of port. It works well now.
Will there be a maintenance release including this patch?
Cheers,
Johannes
_______________________________________________
Spread-users mailing list
[email protected]
http://lists.spread.org/mailman/listinfo/spread-users
signature.asc
(application/pgp-signature, 263 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlIDtgYACgkQBFcR5UV/ccJ3ewCgui6geuF5MMwvRk/QJ2f5q34k aS8AnRIcUFVhZBHAe4EQSMjNMRlSfm3d =/wrq -----END PGP SIGNATURE-----