From 29485e36d6f4635d51ffcc6db604cca181e19a98 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 22 Oct 2006 08:09:24 +0000 Subject: don't discard const. GCC 4.1-20061021 doesn't like that... --- tetris/shapes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tetris') 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; -- cgit v1.2.3-56-ge451