diff options
author | hubertf <hubertf@NetBSD.org> | 1998-09-14 09:13:46 +0000 |
---|---|---|
committer | hubertf <hubertf@NetBSD.org> | 1998-09-14 09:13:46 +0000 |
commit | ac89eb0e91b49c6c012b6ae0bf87686aea5ac5aa (patch) | |
tree | 24bccea563705277b376192e692f985850862174 /arithmetic/arithmetic.c | |
parent | 2c1f90df0d8e0b8270a15b14f438feb82db61fd6 (diff) | |
download | bsdgames-darwin-ac89eb0e91b49c6c012b6ae0bf87686aea5ac5aa.tar.gz bsdgames-darwin-ac89eb0e91b49c6c012b6ae0bf87686aea5ac5aa.tar.zst bsdgames-darwin-ac89eb0e91b49c6c012b6ae0bf87686aea5ac5aa.zip |
constify, as per PR#6136 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'arithmetic/arithmetic.c')
-rw-r--r-- | arithmetic/arithmetic.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index 2042095e..ad0e7b57 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.11 1998/09/13 15:27:25 hubertf Exp $ */ +/* $NetBSD: arithmetic.c,v 1.12 1998/09/14 09:13:46 hubertf Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.11 1998/09/13 15:27:25 hubertf Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.12 1998/09/14 09:13:46 hubertf Exp $"); #endif #endif /* not lint */ @@ -97,9 +97,9 @@ int problem __P((void)); void showstats __P((void)); void usage __P((void)) __attribute__((__noreturn__)); -char keylist[] = "+-x/"; -char defaultkeys[] = "+-"; -char *keys = defaultkeys; +const char keylist[] = "+-x/"; +const char defaultkeys[] = "+-"; +const char *keys = defaultkeys; int nkeys = sizeof(defaultkeys) - 1; int rangemax = 10; int nright, nwrong; @@ -125,7 +125,7 @@ main(argc, argv) while ((ch = getopt(argc, argv, "r:o:")) != -1) switch(ch) { case 'o': { - char *p; + const char *p; for (p = keys = optarg; *p; ++p) if (!strchr(keylist, *p)) |