diff options
Diffstat (limited to 'games/mille/save.c')
-rw-r--r-- | games/mille/save.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/games/mille/save.c b/games/mille/save.c index 54a1d38..f52fbf7 100644 --- a/games/mille/save.c +++ b/games/mille/save.c @@ -67,11 +67,11 @@ typedef struct stat STAT; */ bool -save() { - +save(void) +{ extern int errno; char *sp; - int outf; + int loutf; time_t *tp; char buf[80]; time_t tme; @@ -122,7 +122,7 @@ over: && getyn(OVERWRITEFILEPROMPT) == FALSE)) return FALSE; - if ((outf = creat(buf, 0644)) < 0) { + if ((loutf = creat(buf, 0644)) < 0) { error(strerror(errno)); return FALSE; } @@ -134,8 +134,8 @@ over: for (; *sp != '\n'; sp++) continue; *sp = '\0'; - varpush(outf, write); - close(outf); + varpush(loutf, write); + close(loutf); wprintw(Score, " [%s]", buf); wclrtoeol(Score); wrefresh(Score); @@ -148,9 +148,8 @@ over: * be cleaned up before the game starts. */ bool -rest_f(file) -char *file; { - +rest_f(char *file) +{ char *sp; int inf; char buf[80]; |