diff options
author | jsm <jsm@NetBSD.org> | 1999-09-08 21:17:44 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 1999-09-08 21:17:44 +0000 |
commit | 04f4d7044367099914cf1906ae27ac20c24e44cf (patch) | |
tree | c17cb5c2f270bbb70eeba18cbe2bcfa43cfd8e10 /fortune/strfile | |
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 'fortune/strfile')
-rw-r--r-- | fortune/strfile/strfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fortune/strfile/strfile.c b/fortune/strfile/strfile.c index a27c2711..69357391 100644 --- a/fortune/strfile/strfile.c +++ b/fortune/strfile/strfile.c @@ -1,4 +1,4 @@ -/* $NetBSD: strfile.c,v 1.9 1999/08/21 07:02:46 simonb Exp $ */ +/* $NetBSD: strfile.c,v 1.10 1999/09/08 21:17:49 jsm Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: strfile.c,v 1.9 1999/08/21 07:02:46 simonb Exp $"); +__RCSID("$NetBSD: strfile.c,v 1.10 1999/09/08 21:17:49 jsm Exp $"); #endif #endif /* not lint */ @@ -396,12 +396,12 @@ int cmp_str(vp1, vp2) const void *vp1, *vp2; { - STR *p1, *p2; + const STR *p1, *p2; int c1, c2; int n1, n2; - p1 = (STR *)vp1; - p2 = (STR *)vp2; + p1 = (const STR *)vp1; + p2 = (const STR *)vp2; # define SET_N(nf,ch) (nf = (ch == '\n')) # define IS_END(ch,nf) (ch == Delimch && nf) |