summaryrefslogtreecommitdiffstats
path: root/tetris
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-10-19 17:19:30 +0000
committerchristos <christos@NetBSD.org>2013-10-19 17:19:30 +0000
commit2a8e0dceaacbc707148905b721f341004c7ea365 (patch)
tree78a1d40f997319c41fdcc38b09243b14016f289b /tetris
parent3a0be2d0e88bf73dec95086fa0048c88f0b142d9 (diff)
downloadbsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.tar.gz
bsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.tar.zst
bsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.zip
fix unused variable warnings
Diffstat (limited to 'tetris')
-rw-r--r--tetris/scores.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tetris/scores.c b/tetris/scores.c
index 7d5fca86..83cc6f24 100644
--- a/tetris/scores.c
+++ b/tetris/scores.c
@@ -1,4 +1,4 @@
-/* $NetBSD: scores.c,v 1.20 2011/01/05 15:48:00 wiz Exp $ */
+/* $NetBSD: scores.c,v 1.21 2013/10/19 17:23:08 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -381,9 +381,8 @@ getscores(int *fdp)
struct highscore_header header;
int sd, mint, lck;
mode_t mask;
- const char *mstr, *human;
+ const char *human;
int doflip;
- int serrno;
ssize_t result;
#ifdef ALLOW_SCORE_UPDATES
@@ -395,14 +394,12 @@ getscores(int *fdp)
#endif
{
mint = O_RDONLY;
- mstr = "r";
human = "reading";
lck = LOCK_SH;
}
setegid(egid);
mask = umask(S_IWOTH);
sd = open(_PATH_SCOREFILE, mint, 0666);
- serrno = errno;
(void)umask(mask);
setegid(gid);
if (sd < 0) {