summaryrefslogtreecommitdiffstats
path: root/mille
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-01-28 05:55:10 +0000
committerdholland <dholland@NetBSD.org>2008-01-28 05:55:10 +0000
commit41058b6ea0386b49a8c5d57d215a75e6230d9cab (patch)
tree38d3fecc49e98d37ec834065263af819f4bb358c /mille
parent5c66e02d89d57ecc63fccd60c80411d741a722e0 (diff)
downloadbsdgames-darwin-41058b6ea0386b49a8c5d57d215a75e6230d9cab.tar.gz
bsdgames-darwin-41058b6ea0386b49a8c5d57d215a75e6230d9cab.tar.zst
bsdgames-darwin-41058b6ea0386b49a8c5d57d215a75e6230d9cab.zip
make mille build with WARNS=4
Diffstat (limited to 'mille')
-rw-r--r--mille/save.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mille/save.c b/mille/save.c
index 3078452c..1cb0592a 100644
--- a/mille/save.c
+++ b/mille/save.c
@@ -1,4 +1,4 @@
-/* $NetBSD: save.c,v 1.11 2003/08/07 09:37:26 agc Exp $ */
+/* $NetBSD: save.c,v 1.12 2008/01/28 05:55:10 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: save.c,v 1.11 2003/08/07 09:37:26 agc Exp $");
+__RCSID("$NetBSD: save.c,v 1.12 2008/01/28 05:55:10 dholland Exp $");
#endif
#endif /* not lint */
@@ -60,7 +60,7 @@ bool
save()
{
char *sp;
- int outf;
+ int outfd;
time_t *tp;
char buf[80];
time_t tme;
@@ -112,15 +112,15 @@ over:
&& getyn(OVERWRITEFILEPROMPT) == FALSE))
return FALSE;
- if ((outf = creat(buf, 0644)) < 0) {
+ if ((outfd = creat(buf, 0644)) < 0) {
error(strerror(errno));
return FALSE;
}
mvwaddstr(Score, ERR_Y, ERR_X, buf);
wrefresh(Score);
time(tp); /* get current time */
- rv = varpush(outf, writev);
- close(outf);
+ rv = varpush(outfd, writev);
+ close(outfd);
if (rv == FALSE) {
unlink(buf);
} else {