]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Silence warnings: apply `const' generously, mark some variables
authordd <dd@FreeBSD.org>
Sun, 9 Sep 2001 14:25:02 +0000 (14:25 +0000)
committerdd <dd@FreeBSD.org>
Sun, 9 Sep 2001 14:25:02 +0000 (14:25 +0000)
commit3c17c0ac6ec2abd033309e345074abeda81b6e63
treeb1c0599d3296192df45e7cd64dc47c4fc141ac45
parent2b3c9b55980d5dfe320041f119eeaf561de21a68
- 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)
usr.sbin/syslogd/Makefile
usr.sbin/syslogd/syslogd.c