From 62fff4f937fb14506d52082a92c3a08c20076940 Mon Sep 17 00:00:00 2001 From: Eric Allman Date: Mon, 9 Nov 1981 01:27:14 -0800 Subject: [PATCH] LINT SCCS-vsn: usr.sbin/sendmail/src/err.c 3.16 SCCS-vsn: usr.sbin/sendmail/src/useful.h 3.5 SCCS-vsn: usr.sbin/sendmail/src/main.c 3.53 SCCS-vsn: usr.sbin/sendmail/src/stats.c 3.3 SCCS-vsn: usr.sbin/sendmail/src/daemon.c 3.4 SCCS-vsn: usr.sbin/sendmail/src/queue.c 3.4 --- usr/src/usr.sbin/sendmail/src/daemon.c | 2 +- usr/src/usr.sbin/sendmail/src/err.c | 5 +++-- usr/src/usr.sbin/sendmail/src/main.c | 5 ++--- usr/src/usr.sbin/sendmail/src/queue.c | 14 +++++++------- usr/src/usr.sbin/sendmail/src/stats.c | 3 +-- usr/src/usr.sbin/sendmail/src/useful.h | 4 ++-- 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/usr/src/usr.sbin/sendmail/src/daemon.c b/usr/src/usr.sbin/sendmail/src/daemon.c index 731c40dca1..1a1c621699 100644 --- a/usr/src/usr.sbin/sendmail/src/daemon.c +++ b/usr/src/usr.sbin/sendmail/src/daemon.c @@ -1,7 +1,7 @@ # include "sendmail.h" # include -static char SccsId[] = "@(#)daemon.c 3.3 %G%"; +static char SccsId[] = "@(#)daemon.c 3.4 %G%"; /* ** DAEMON.C -- routines to use when running as a daemon. diff --git a/usr/src/usr.sbin/sendmail/src/err.c b/usr/src/usr.sbin/sendmail/src/err.c index 6c671e1156..d961859270 100644 --- a/usr/src/usr.sbin/sendmail/src/err.c +++ b/usr/src/usr.sbin/sendmail/src/err.c @@ -3,7 +3,7 @@ # include # endif LOG -static char SccsId[] = "@(#)err.c 3.15 %G%"; +static char SccsId[] = "@(#)err.c 3.16 %G%"; /* ** SYSERR -- Print error message. @@ -36,7 +36,7 @@ syserr(fmt, a, b, c, d, e) extern char Arpa_Syserr[]; /* format the error message */ - fmtmsg(errbuf, NULL, Arpa_Syserr, fmt, a, b, c, d, e); + fmtmsg(errbuf, (char *) NULL, Arpa_Syserr, fmt, a, b, c, d, e); /* output error message to transcript */ fprintf(Xscript, "%s\n", errbuf); @@ -151,6 +151,7 @@ message(num, msg, a, b, c, d, e) ** none. */ +/*VARARGS4*/ static fmtmsg(eb, to, num, fmt, a, b, c, d, e) register char *eb; diff --git a/usr/src/usr.sbin/sendmail/src/main.c b/usr/src/usr.sbin/sendmail/src/main.c index fe852f415e..8b85c5f3e6 100644 --- a/usr/src/usr.sbin/sendmail/src/main.c +++ b/usr/src/usr.sbin/sendmail/src/main.c @@ -7,7 +7,7 @@ # include # endif LOG -static char SccsId[] = "@(#)main.c 3.52 %G%"; +static char SccsId[] = "@(#)main.c 3.53 %G%"; /* ** SENDMAIL -- Post mail to a set of destinations. @@ -254,7 +254,7 @@ main(argc, argv) Debug = atoi(&p[2]); if (Debug <= 0) Debug = 1; - setbuf(stdout, NULL); + setbuf(stdout, (char *) NULL); printf("Version %s Debug %d\n", Version, Debug); break; @@ -789,7 +789,6 @@ initsys() register char *p; extern char *ttyname(); extern char *arpadate(); - extern long time(); /* convert timeout interval to absolute time */ TimeOut -= CurTime; diff --git a/usr/src/usr.sbin/sendmail/src/queue.c b/usr/src/usr.sbin/sendmail/src/queue.c index c3e7830628..0f05533cb7 100644 --- a/usr/src/usr.sbin/sendmail/src/queue.c +++ b/usr/src/usr.sbin/sendmail/src/queue.c @@ -4,7 +4,7 @@ # include # include -static char SccsId[] = "@(#)queue.c 3.3 %G%"; +static char SccsId[] = "@(#)queue.c 3.4 %G%"; /* ** QUEUEUP -- queue a message up for future transmission. @@ -137,8 +137,8 @@ runqueue(forkflag) if (QueueIntvl != 0) { - signal(SIGALRM, reordersig); - alarm(QueueIntvl); + (void) signal(SIGALRM, reordersig); + (void) alarm((unsigned) QueueIntvl); } if (forkflag) @@ -150,7 +150,7 @@ runqueue(forkflag) return; } else - alarm(0); + (void) alarm((unsigned) 0); } for (;;) @@ -224,12 +224,12 @@ reordersig() /* no child -- get zombie & start new one */ static int st; - wait(&st); + (void) wait(&st); QueuePid = dofork(); if (QueuePid == 0) { /* new child; run queue */ - runqueue(); + runqueue(FALSE); finis(); } } @@ -239,7 +239,7 @@ reordersig() ** Arrange to get this signal again. */ - alarm(QueueIntvl); + (void) alarm((unsigned) QueueIntvl); } /* ** ORDERQ -- order the work queue. diff --git a/usr/src/usr.sbin/sendmail/src/stats.c b/usr/src/usr.sbin/sendmail/src/stats.c index fdbcf37b97..4a267a5c07 100644 --- a/usr/src/usr.sbin/sendmail/src/stats.c +++ b/usr/src/usr.sbin/sendmail/src/stats.c @@ -1,6 +1,6 @@ # include "sendmail.h" -static char SccsId[] = "@(#)stats.c 3.2 %G%"; +static char SccsId[] = "@(#)stats.c 3.3 %G%"; /* ** POSTSTATS -- post statistics in the statistics file @@ -23,7 +23,6 @@ poststats(sfile) register int fd; struct statistics stat; extern long lseek(); - extern long time(); (void) time(&Stat.stat_itime); Stat.stat_size = sizeof Stat; diff --git a/usr/src/usr.sbin/sendmail/src/useful.h b/usr/src/usr.sbin/sendmail/src/useful.h index c36cd0553a..aba9828301 100644 --- a/usr/src/usr.sbin/sendmail/src/useful.h +++ b/usr/src/usr.sbin/sendmail/src/useful.h @@ -1,7 +1,7 @@ /* ** USEFUL.H -- Some useful stuff. ** -** @(#)useful.h 3.4 %G% +** @(#)useful.h 3.5 %G% */ # ifndef makedev @@ -27,7 +27,7 @@ extern char *malloc(); extern char *index(), *rindex(); extern int errno; extern char *sprintf(); -extern long time(); +extern time_t time(); extern char *ctime(); # ifndef V6 extern char *getenv(); -- 2.20.1