diff options
author | billf <billf@FreeBSD.org> | 1999-12-12 06:17:25 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-12-12 06:17:25 +0000 |
commit | 9292b471d0966ad014fab7475444d565db490e08 (patch) | |
tree | f87822a4005db8633c9b25c0a8fb78da2d7a7522 /games/mille/misc.c | |
parent | 1da218306142327914ba163494fe5569fc587d6d (diff) | |
download | FreeBSD-src-9292b471d0966ad014fab7475444d565db490e08.zip FreeBSD-src-9292b471d0966ad014fab7475444d565db490e08.tar.gz |
-Wall fixes.
Diffstat (limited to 'games/mille/misc.c')
-rw-r--r-- | games/mille/misc.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/games/mille/misc.c b/games/mille/misc.c index ebedd22..ee428bc 100644 --- a/games/mille/misc.c +++ b/games/mille/misc.c @@ -40,10 +40,10 @@ static const char rcsid[] = #endif /* not lint */ #include <sys/file.h> +#include <stdarg.h> #include <termios.h> #include "mille.h" -#include <unctrl.h> # ifdef attron @@ -58,11 +58,15 @@ static const char rcsid[] = #define NUMSAFE 4 /* VARARGS1 */ -error(str, arg) -char *str; +bool +error(char *str, ...) { + va_list arg; + + va_start(arg, str); stdscr = Score; mvprintw(ERR_Y, ERR_X, str, arg); + va_end(arg); clrtoeol(); putchar('\07'); refresh(); @@ -119,6 +123,7 @@ cont: ; } } +bool check_ext(forcomp) bool forcomp; { @@ -173,6 +178,7 @@ done: * Get a yes or no answer to the given question. Saves are * also allowed. Return TRUE if the answer was yes, FALSE if no. */ +bool getyn(promptno) int promptno; { @@ -245,6 +251,7 @@ check_more() die(0); } +char readch() { int cnt; |