diff options
author | 1999-09-08 21:17:44 +0000 | |
---|---|---|
committer | 1999-09-08 21:17:44 +0000 | |
commit | 04f4d7044367099914cf1906ae27ac20c24e44cf (patch) | |
tree | c17cb5c2f270bbb70eeba18cbe2bcfa43cfd8e10 /tetris/shapes.c | |
parent | f9706028dd6e2afabb6bd63d02d7bc90f78e4aab (diff) | |
download | bsdgames-darwin-04f4d7044367099914cf1906ae27ac20c24e44cf.tar.gz bsdgames-darwin-04f4d7044367099914cf1906ae27ac20c24e44cf.tar.zst bsdgames-darwin-04f4d7044367099914cf1906ae27ac20c24e44cf.zip |
Add use of `const' where appropriate to the games.
This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).
Some such changes were previously covered in PRs bin/6041, bin/6146,
bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994,
bin/8039, bin/8057 and bin/8093.
Diffstat (limited to 'tetris/shapes.c')
-rw-r--r-- | tetris/shapes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tetris/shapes.c b/tetris/shapes.c index 86309e24..86f249cc 100644 --- a/tetris/shapes.c +++ b/tetris/shapes.c @@ -1,4 +1,4 @@ -/* $NetBSD: shapes.c,v 1.3 1997/10/12 02:03:47 lukem Exp $ */ +/* $NetBSD: shapes.c,v 1.4 1999/09/08 21:18:01 jsm Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -56,7 +56,7 @@ #define BC B_COLS /* bottom center */ #define BR B_COLS+1 /* bottom right */ -struct shape shapes[] = { +const struct shape shapes[] = { /* 0*/ { 7, { TL, TC, MR, } }, /* 1*/ { 8, { TC, TR, ML, } }, /* 2*/ { 9, { ML, MR, BC, } }, @@ -84,7 +84,7 @@ struct shape shapes[] = { */ int fits_in(shape, pos) - struct shape *shape; + const struct shape *shape; register int pos; { register int *o = shape->off; @@ -101,7 +101,7 @@ fits_in(shape, pos) */ void place(shape, pos, onoff) - struct shape *shape; + const struct shape *shape; register int pos, onoff; { register int *o = shape->off; |