summaryrefslogtreecommitdiff
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-06-29 18:57:44 +0000
committerchristos <christos@NetBSD.org>1997-06-29 18:57:44 +0000
commit3c795cb2e04ce2edf3974b6a0bfde658d32dfd70 (patch)
treefb0ea1e7e4381d6427bb2bf639662258312bc468 /usr.sbin/syslogd
parent6eb0e7c5037b9ba28ceb936ceec13d10c56bb6d0 (diff)
- Fix warnings
- Use ttymsg from libutil.
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/Makefile7
-rw-r--r--usr.sbin/syslogd/syslogd.c16
2 files changed, 14 insertions, 9 deletions
diff --git a/usr.sbin/syslogd/Makefile b/usr.sbin/syslogd/Makefile
index e7c00a5ee34..11203536ef2 100644
--- a/usr.sbin/syslogd/Makefile
+++ b/usr.sbin/syslogd/Makefile
@@ -1,9 +1,10 @@
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93
-# $NetBSD: Makefile,v 1.8 1997/05/08 21:12:45 gwr Exp $
+# $NetBSD: Makefile,v 1.9 1997/06/29 18:57:44 christos Exp $
+CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
PROG= syslogd
-SRCS= syslogd.c ttymsg.c
-.PATH: ${.CURDIR}/../../usr.bin/wall
MAN= syslogd.8 syslog.conf.5
+DPADD+=${LIBUTIL}
+LDADD+=-lutil
.include <bsd.prog.mk>
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index f16ecbc7cd5..91cff40d523 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -31,15 +31,18 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-static char copyright[] =
-"@(#) Copyright (c) 1983, 1988, 1993, 1994\n\
- The Regents of the University of California. All rights reserved.\n";
+__COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\n\
+ The Regents of the University of California. All rights reserved.\n");
#endif /* not lint */
#ifndef lint
-/*static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";*/
-static char rcsid[] = "$NetBSD: syslogd.c,v 1.10 1997/05/17 20:31:15 pk Exp $";
+#if 0
+static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
+#else
+__RCSID("$NetBSD: syslogd.c,v 1.11 1997/06/29 18:57:45 christos Exp $");
+#endif
#endif /* not lint */
/*
@@ -96,6 +99,7 @@ static char rcsid[] = "$NetBSD: syslogd.c,v 1.10 1997/05/17 20:31:15 pk Exp $";
#include <string.h>
#include <unistd.h>
#include <utmp.h>
+#include <util.h>
#include "pathnames.h"
#define SYSLOG_NAMES
@@ -201,9 +205,9 @@ void logmsg __P((int, char *, char *, int));
void printline __P((char *, char *));
void printsys __P((char *));
void reapchild __P((int));
-char *ttymsg __P((struct iovec *, int, char *, int));
void usage __P((void));
void wallmsg __P((struct filed *, struct iovec *));
+int main __P((int, char *[]));
int
main(argc, argv)