diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-21 19:05:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-21 19:05:30 +0000 |
commit | ee3741eb8cee54e22c621e3d9f9bd4735259223f (patch) | |
tree | 6a74320c82f88d181a2f0075d3f48560ffffdeac | |
parent | bfeff674bfd05a4b01510c07ee3d9b2017fa93a5 (diff) |
Wall
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index b2b6b324281..7a465b7c2b0 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -210,7 +210,7 @@ main(argc, argv) int argc; char *argv[]; { - int ch, funix, i, inetm, fklog, klogm, len; + int ch, funix, i, inetm = 0, fklog, klogm, len; struct sockaddr_un sunx, fromunix; struct sockaddr_in sin, frominet; FILE *fp; @@ -545,7 +545,7 @@ logmsg(pri, msg, from, flags) (void)strncpy(f->f_lasttime, timestamp, 15); f->f_prevcount++; dprintf("msg repeated %d times, %ld sec of %d\n", - f->f_prevcount, now - f->f_time, + f->f_prevcount, (long)(now - f->f_time), repeatinterval[f->f_repeatcount]); /* * If domark would have logged this by now, |