summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-20 00:15:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-20 00:15:21 +0000
commit6c36be4b0346bcbb726fdfdcfe8a85f13bc4e6c3 (patch)
tree6e1e1aeec4978c12b845265d85cf18784bee9f42 /games
parent33623deeb4513ba9dd48f7220accfd885e50047d (diff)
sub-function needs const, too
Diffstat (limited to 'games')
-rw-r--r--games/tetris/shapes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/tetris/shapes.c b/games/tetris/shapes.c
index 05ea602f06b..447e8b3dc05 100644
--- a/games/tetris/shapes.c
+++ b/games/tetris/shapes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shapes.c,v 1.8 2004/07/10 07:26:24 deraadt Exp $ */
+/* $OpenBSD: shapes.c,v 1.9 2010/07/20 00:15:20 deraadt Exp $ */
/* $NetBSD: shapes.c,v 1.2 1995/04/22 07:42:44 cgd Exp $ */
/*-
@@ -82,7 +82,7 @@ const struct shape shapes[] = {
int
fits_in(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])
@@ -97,7 +97,7 @@ fits_in(const struct shape *shape, int pos)
void
place(const struct shape *shape, int pos, int onoff)
{
- int *o = shape->off;
+ const int *o = shape->off;
board[pos] = onoff;
board[pos + *o++] = onoff;