diff options
author | pfg <pfg@FreeBSD.org> | 2015-02-27 01:59:29 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-02-27 01:59:29 +0000 |
commit | 6f347e9b0e3f0d99b8c16185f1e2ef665ec62931 (patch) | |
tree | f42170930eb569a2e4fd6351025fedc915458003 /contrib/netbsd-tests/lib/libc/stdlib/t_random.c | |
parent | 6c212ad708bd62ba031604b1f98397ab5464cd29 (diff) | |
download | FreeBSD-src-6f347e9b0e3f0d99b8c16185f1e2ef665ec62931.zip FreeBSD-src-6f347e9b0e3f0d99b8c16185f1e2ef665ec62931.tar.gz |
Hint out check for unsigned negative values.
On FreeBSD socklen_t is unsigned so the check negative len
in inet6_opt_append() is redundant and likely to be optimized
away by the compiler.
On other operating systems this is not necessarily so, and
in the future we may want to sign it so leave the check in
but place it in a secondary position as a subtle indication
that the bogus check is intentional.
Discussed with: rpaulo
CID: 1017783
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/t_random.c')
0 files changed, 0 insertions, 0 deletions