summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd/Makefile
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-09-09 14:25:02 +0000
committerdd <dd@FreeBSD.org>2001-09-09 14:25:02 +0000
commit3c17c0ac6ec2abd033309e345074abeda81b6e63 (patch)
treeb1c0599d3296192df45e7cd64dc47c4fc141ac45 /usr.sbin/syslogd/Makefile
parent2b3c9b55980d5dfe320041f119eeaf561de21a68 (diff)
downloadFreeBSD-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 'usr.sbin/syslogd/Makefile')
-rw-r--r--usr.sbin/syslogd/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/Makefile b/usr.sbin/syslogd/Makefile
index 91a48ae..8715495 100644
--- a/usr.sbin/syslogd/Makefile
+++ b/usr.sbin/syslogd/Makefile
@@ -7,6 +7,7 @@ PROG= syslogd
MAN= syslog.conf.5 syslogd.8
SRCS= syslogd.c ttymsg.c
-COPTS+= -DINET6
+COPTS+= -DINET6 -I${.CURDIR}/../../usr.bin/wall
+WARNS?= 1
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud