From owner-cvs-all Sun Sep 9 7:25: 9 2001
Delivered-To: cvs-all@freebsd.org
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
by hub.freebsd.org (Postfix) with ESMTP
id 4F82237B408; Sun, 9 Sep 2001 07:25:02 -0700 (PDT)
Received: (from dd@localhost)
by freefall.freebsd.org (8.11.4/8.11.4) id f89EP2s54613;
Sun, 9 Sep 2001 07:25:02 -0700 (PDT)
(envelope-from dd)
Message-Id: <200109091425.f89EP2s54613@freefall.freebsd.org>
From: Dima Dorfman
Date: Sun, 9 Sep 2001 07:25:02 -0700 (PDT)
To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject: cvs commit: src/usr.sbin/syslogd Makefile syslogd.c
X-FreeBSD-CVS-Branch: HEAD
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
List-ID:
List-Archive: (Web Archive)
List-Help: (List Instructions)
List-Subscribe:
List-Unsubscribe:
X-Loop: FreeBSD.ORG
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