diff options
author | dd <dd@FreeBSD.org> | 2001-09-09 14:25:02 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-09-09 14:25:02 +0000 |
commit | 3c17c0ac6ec2abd033309e345074abeda81b6e63 (patch) | |
tree | b1c0599d3296192df45e7cd64dc47c4fc141ac45 /include/netdb.h | |
parent | 2b3c9b55980d5dfe320041f119eeaf561de21a68 (diff) | |
download | FreeBSD-src-3c17c0ac6ec2abd033309e345074abeda81b6e63.zip FreeBSD-src-3c17c0ac6ec2abd033309e345074abeda81b6e63.tar.gz |
- Silence warnings: apply `const' generously, mark some variables
__unused, and change local variables named `sin' (struct
sockaddr_in) to `sin4'. (`sin' conflicts with the definition of
sin(3), which gcc assumes to be defined even if math.h isn't
included (it's a builtin). This is probably a bug in gcc.)
- Apply WARNS=1. WARNS=2 was not used because this program assigns
string literals to (struct iovec).iov_base for writing, and the only
clean way to silence -Wwrite-strings in that case would be to
strdup() and consequently free() those literals, which I considered
too disruptive.
Reviewed by: bde (partially)
Diffstat (limited to 'include/netdb.h')
0 files changed, 0 insertions, 0 deletions