diff options
Diffstat (limited to 'games/phantasia/io.c')
-rw-r--r-- | games/phantasia/io.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/games/phantasia/io.c b/games/phantasia/io.c index 881bf3a567f..dcac231f197 100644 --- a/games/phantasia/io.c +++ b/games/phantasia/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.6 2014/07/12 03:41:04 deraadt Exp $ */ +/* $OpenBSD: io.c,v 1.7 2016/01/06 09:39:51 tb Exp $ */ /* $NetBSD: io.c,v 1.2 1995/03/24 03:58:50 cgd Exp $ */ /* @@ -43,9 +43,7 @@ *************************************************************************/ void -getstring(cp, mx) - char *cp; - int mx; +getstring(char *cp, int mx) { char *inptr; /* pointer into string for next string */ int x, y; /* original x, y coordinates on screen */ @@ -119,8 +117,7 @@ getstring(cp, mx) *************************************************************************/ void -more(where) - int where; +more(int where) { mvaddstr(where, 0, "-- more --"); getanswer(" ", FALSE); @@ -152,7 +149,7 @@ more(where) *************************************************************************/ double -infloat() +infloat(void) { double result; /* return value */ @@ -190,7 +187,7 @@ infloat() *************************************************************************/ int -inputoption() +inputoption(void) { ++Player.p_age; /* increase age */ @@ -233,7 +230,7 @@ inputoption() *************************************************************************/ void -interrupt() +interrupt(void) { char line[81]; /* a place to store data already on screen */ int loop; /* counter */ @@ -307,9 +304,7 @@ interrupt() *************************************************************************/ int -getanswer(choices, def) - char *choices; - bool def; +getanswer(char *choices, bool def) { int ch; /* input */ volatile int loop; /* counter */ @@ -407,8 +402,7 @@ getanswer(choices, def) *************************************************************************/ void -catchalarm(dummy) - int dummy; +catchalarm(int dummy) { longjmp(Timeoenv, 1); } |