summaryrefslogtreecommitdiffstats
path: root/tetris
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2006-10-22 08:09:24 +0000
committermrg <mrg@NetBSD.org>2006-10-22 08:09:24 +0000
commit29485e36d6f4635d51ffcc6db604cca181e19a98 (patch)
tree20aacba8da4864c4b2baf78fd0dc3e70a9f903c3 /tetris
parent932c3ef1abc93879e9dc29fd3c38eb88ec72b20f (diff)
downloadbsdgames-darwin-29485e36d6f4635d51ffcc6db604cca181e19a98.tar.gz
bsdgames-darwin-29485e36d6f4635d51ffcc6db604cca181e19a98.tar.zst
bsdgames-darwin-29485e36d6f4635d51ffcc6db604cca181e19a98.zip
don't discard const. GCC 4.1-20061021 doesn't like that...
Diffstat (limited to 'tetris')
-rw-r--r--tetris/shapes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tetris/shapes.c b/tetris/shapes.c
index 568b78e0..9fb3ae27 100644
--- a/tetris/shapes.c
+++ b/tetris/shapes.c
@@ -1,4 +1,4 @@
-/* $NetBSD: shapes.c,v 1.6 2003/08/07 09:37:48 agc Exp $ */
+/* $NetBSD: shapes.c,v 1.7 2006/10/22 08:09:24 mrg Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -83,7 +83,7 @@ fits_in(shape, pos)
const struct shape *shape;
int pos;
{
- int *o = shape->off;
+ const int *o = shape->off;
if (board[pos] || board[pos + *o++] || board[pos + *o++] ||
board[pos + *o])
@@ -100,7 +100,7 @@ place(shape, pos, onoff)
const struct shape *shape;
int pos, onoff;
{
- int *o = shape->off;
+ const int *o = shape->off;
board[pos] = onoff;
board[pos + *o++] = onoff;