diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-10 07:26:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-10 07:26:25 +0000 |
commit | 81fbdc5dca4ba4f9673c612f03fede15c8ad3f91 (patch) | |
tree | bb4eddffc1438ca1405dde0867782c5b37066a26 /games/battlestar/getcom.c | |
parent | 123f3b7651527e3cd41a6956ecd641c00442b6c7 (diff) |
more ansi; khalek@linuxgamers.net
Diffstat (limited to 'games/battlestar/getcom.c')
-rw-r--r-- | games/battlestar/getcom.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/games/battlestar/getcom.c b/games/battlestar/getcom.c index e46ff8c7375..e7bfb98e2b4 100644 --- a/games/battlestar/getcom.c +++ b/games/battlestar/getcom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getcom.c,v 1.11 2003/06/03 03:01:38 millert Exp $ */ +/* $OpenBSD: getcom.c,v 1.12 2004/07/10 07:26:22 deraadt Exp $ */ /* $NetBSD: getcom.c,v 1.3 1995/03/21 15:07:30 cgd Exp $ */ /* @@ -34,17 +34,14 @@ #if 0 static char sccsid[] = "@(#)getcom.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: getcom.c,v 1.11 2003/06/03 03:01:38 millert Exp $"; +static char rcsid[] = "$OpenBSD: getcom.c,v 1.12 2004/07/10 07:26:22 deraadt Exp $"; #endif #endif /* not lint */ #include "extern.h" char * -getcom(buf, size, prompt, error) - char *buf; - int size; - const char *prompt, *error; +getcom(char *buf, int size, const char *prompt, const char *error) { for (;;) { fputs(prompt, stdout); @@ -76,9 +73,7 @@ getcom(buf, size, prompt, error) * and leaves it unchanged if flag = 0 */ char * -getword(buf1, buf2, flag) - char *buf1, *buf2; - int flag; +getword(char *buf1, char *buf2, int flag) { int cnt; |