Date: Sun, 9 Sep 2001 07:25:02 -0700 (PDT) From: Dima Dorfman <dd@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/syslogd Makefile syslogd.c Message-ID: <200109091425.f89EP2s54613@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
dd 2001/09/09 07:25:02 PDT Modified files: usr.sbin/syslogd Makefile syslogd.c Log: - 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) Revision Changes Path 1.8 +3 -2 src/usr.sbin/syslogd/Makefile 1.86 +49 -45 src/usr.sbin/syslogd/syslogd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109091425.f89EP2s54613>