summaryrefslogtreecommitdiffstats
path: root/trek/getpar.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-07-21 13:19:10 +0000
committerhubertf <hubertf@NetBSD.org>1999-07-21 13:19:10 +0000
commitd91aeebe629b8428e564df33c93bb69195d28cc3 (patch)
tree342727fa8bfdbef8202ebb0d3d400deab12a179f /trek/getpar.c
parent21ce304979b76ad5fff791e88f3f0c0fa22ce01a (diff)
downloadbsdgames-darwin-d91aeebe629b8428e564df33c93bb69195d28cc3.tar.gz
bsdgames-darwin-d91aeebe629b8428e564df33c93bb69195d28cc3.tar.zst
bsdgames-darwin-d91aeebe629b8428e564df33c93bb69195d28cc3.zip
const poisoning
Patch submitted in PR 8039 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'trek/getpar.c')
-rw-r--r--trek/getpar.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/trek/getpar.c b/trek/getpar.c
index c35cd90d..df0c820b 100644
--- a/trek/getpar.c
+++ b/trek/getpar.c
@@ -1,4 +1,4 @@
-/* $NetBSD: getpar.c,v 1.6 1997/10/13 22:12:01 cjs Exp $ */
+/* $NetBSD: getpar.c,v 1.7 1999/07/21 13:19:10 hubertf Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getpar.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: getpar.c,v 1.6 1997/10/13 22:12:01 cjs Exp $");
+__RCSID("$NetBSD: getpar.c,v 1.7 1999/07/21 13:19:10 hubertf Exp $");
#endif
#endif /* not lint */
@@ -55,7 +55,7 @@ static int testterm __P((void));
int
getintpar(s)
-char *s;
+ const char *s;
{
int i;
int n;
@@ -79,7 +79,7 @@ char *s;
**/
double getfltpar(s)
-char *s;
+ const char *s;
{
int i;
double d;
@@ -102,7 +102,7 @@ char *s;
** get yes/no parameter
**/
-struct cvntab Yntab[] =
+const struct cvntab Yntab[] =
{
{ "y", "es", (cmdfun)1, 1 },
{ "n", "o", (cmdfun)0, 0 },
@@ -111,9 +111,9 @@ struct cvntab Yntab[] =
int
getynpar(s)
-char *s;
+ const char *s;
{
- struct cvntab *r;
+ const struct cvntab *r;
r = getcodpar(s, Yntab);
return r->value2;
@@ -124,14 +124,14 @@ char *s;
** get coded parameter
**/
-struct cvntab *getcodpar(s, tab)
-char *s;
-struct cvntab tab[];
+const struct cvntab *getcodpar(s, tab)
+ const char *s;
+ const struct cvntab tab[];
{
char input[100];
- struct cvntab *r;
+ const struct cvntab *r;
int flag;
- char *p, *q;
+ const char *p, *q;
int c;
int f;
@@ -204,10 +204,10 @@ struct cvntab tab[];
void
getstrpar(s, r, l, t)
-char *s;
-char *r;
-int l;
-char *t;
+ const char *s;
+ char *r;
+ int l;
+ const char *t;
{
int i;
char format[20];