diff options
| author | mycroft <mycroft@NetBSD.org> | 1993-04-18 20:50:22 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1993-04-18 20:50:22 +0000 |
| commit | 11a76ec00fc7598f0e2a3d4b28830b95598be34f (patch) | |
| tree | 7a3634d1c9482ab30cb784e4525d5d609fef9527 | |
| parent | ebe96c307cd9199374403e2678b6db24f9d312f7 (diff) | |
Cleanup for GCC 2.
| -rw-r--r-- | games/arithmetic/arithmetic.c | 2 | ||||
| -rw-r--r-- | games/cribbage/crib.c | 5 | ||||
| -rw-r--r-- | games/cribbage/io.c | 14 | ||||
| -rw-r--r-- | usr.sbin/sendmail/src/headers.c | 1 | ||||
| -rw-r--r-- | usr.sbin/sendmail/src/queue.c | 3 |
5 files changed, 13 insertions, 12 deletions
diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c index 4fd8bf96446..aa342de1f8e 100644 --- a/games/arithmetic/arithmetic.c +++ b/games/arithmetic/arithmetic.c @@ -77,6 +77,7 @@ static char sccsid[] = "@(#)arithmetic.c 5.5 (Berkeley) 2/27/91"; #include <ctype.h> #include <stdio.h> #include <string.h> +#include <time.h> char keylist[] = "+-x/"; char defaultkeys[] = "+-"; @@ -102,7 +103,6 @@ main(argc, argv) extern char *optarg; extern int optind; int ch, cnt; - time_t time(); void intr(); while ((ch = getopt(argc, argv, "r:o:")) != EOF) diff --git a/games/cribbage/crib.c b/games/cribbage/crib.c index d1d8bc74747..f3146571b54 100644 --- a/games/cribbage/crib.c +++ b/games/cribbage/crib.c @@ -43,6 +43,7 @@ static char sccsid[] = "@(#)crib.c 5.6 (Berkeley) 2/28/91"; # include <sys/signal.h> # include <curses.h> +# include <unistd.h> # include "deck.h" # include "cribbage.h" # include "cribcur.h" @@ -60,7 +61,7 @@ char *argv[]; char *s; /* for reading arguments */ FILE *f; FILE *fopen(); - char *getline(), *getlogin(); + char *getline(); void rint(); while ((ch = getopt(argc, argv, "eqr")) != EOF) @@ -179,6 +180,7 @@ game() register int i, j; BOOLEAN flag; BOOLEAN compcrib; + char *getline(); makeboard(); refresh(); @@ -356,6 +358,7 @@ int pos; { register int i, cardx; BOOLEAN win = FALSE; + char *getline(); if (mycrib) { if (!rflag) { /* random cut */ diff --git a/games/cribbage/io.c b/games/cribbage/io.c index ef99246b433..0d79516865b 100644 --- a/games/cribbage/io.c +++ b/games/cribbage/io.c @@ -374,14 +374,11 @@ int Mpos = 0; static int Newpos = 0; /* VARARGS1 */ -msg(fmt) +msg(fmt,ap) char *fmt; + _VA_LIST_ ap; { - va_list ap; - - va_start(ap, fmt); (void)vsprintf(&Msgbuf[Newpos], fmt, ap); - va_end(ap); endmsg(); } @@ -390,14 +387,11 @@ msg(fmt) * Add things to the current message */ /* VARARGS1 */ -addmsg(fmt) +addmsg(fmt,ap) char *fmt; + _VA_LIST_ ap; { - va_list ap; - - va_start(ap, fmt); (void)vsprintf(&Msgbuf[Newpos], fmt, ap); - va_end(ap); } /* diff --git a/usr.sbin/sendmail/src/headers.c b/usr.sbin/sendmail/src/headers.c index 02950f08126..443270a72be 100644 --- a/usr.sbin/sendmail/src/headers.c +++ b/usr.sbin/sendmail/src/headers.c @@ -725,6 +725,7 @@ commaize(h, p, fp, oldstyle, m) int opos; bool firstone = TRUE; char obuf[MAXLINE + 3]; + extern char *capitalize(); /* ** Output the address list translated by the diff --git a/usr.sbin/sendmail/src/queue.c b/usr.sbin/sendmail/src/queue.c index 03b226a97c7..211d0c07304 100644 --- a/usr.sbin/sendmail/src/queue.c +++ b/usr.sbin/sendmail/src/queue.c @@ -431,6 +431,7 @@ orderq(doall) WORK wlist[QUEUESIZE+1]; int wn = -1; extern workcmpf(); + extern bool shouldqueue(); /* clear out old WorkQ */ for (w = WorkQ; w != NULL; ) @@ -912,6 +913,8 @@ printqueue() cbuf[0] = '\0'; while (fgets(buf, sizeof buf, f) != NULL) { + extern long atol(); + fixcrlf(buf, TRUE); switch (buf[0]) { |
