diff options
| author | christos <christos@NetBSD.org> | 1997-06-29 18:57:44 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1997-06-29 18:57:44 +0000 |
| commit | 3c795cb2e04ce2edf3974b6a0bfde658d32dfd70 (patch) | |
| tree | fb0ea1e7e4381d6427bb2bf639662258312bc468 /usr.sbin/syslogd/syslogd.c | |
| parent | 6eb0e7c5037b9ba28ceb936ceec13d10c56bb6d0 (diff) | |
- Fix warnings
- Use ttymsg from libutil.
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
| -rw-r--r-- | usr.sbin/syslogd/syslogd.c | 16 |
1 files changed, 10 insertions, 6 deletions
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) |
