summaryrefslogtreecommitdiffstats
path: root/trek/trek.h
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/trek.h
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/trek.h')
-rw-r--r--trek/trek.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/trek/trek.h b/trek/trek.h
index 8b96d880..a5686e7e 100644
--- a/trek/trek.h
+++ b/trek/trek.h
@@ -1,4 +1,4 @@
-/* $NetBSD: trek.h,v 1.5 1997/10/12 21:25:23 christos Exp $ */
+/* $NetBSD: trek.h,v 1.6 1999/07/21 13:19:11 hubertf Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -90,7 +90,7 @@ struct quad /* definition for each quadrant */
*/
/* ascii names of systems */
-extern char *Systemname[NINHAB];
+extern const char *const Systemname[NINHAB];
/* quadrant definition */
struct quad Quad[NQUADS][NQUADS];
@@ -133,11 +133,11 @@ char Sect[NSECTS][NSECTS];
/* device names */
struct device
{
- char *name; /* device name */
- char *person; /* the person who fixes it */
+ const char *name; /* device name */
+ const char *person; /* the person who fixes it */
};
-struct device Device[NDEV];
+const struct device Device[NDEV];
/*************************** EVENTS ****************************/
@@ -215,8 +215,8 @@ struct xy
};
-extern struct cvntab Skitab[];
-extern struct cvntab Lentab[];
+extern const struct cvntab Skitab[];
+extern const struct cvntab Lentab[];
/*
* note that much of the stuff in the following structs CAN NOT
@@ -245,7 +245,7 @@ struct
int secty; /* sector y coord */
unsigned char cond; /* condition code */
char sinsbad; /* Space Inertial Navigation System condition */
- char *shipname; /* name of current starship */
+ const char *shipname; /* name of current starship */
char ship; /* current starship */
int distressed; /* number of distress calls */
} Ship;
@@ -516,7 +516,7 @@ void snova __P((int, int ));
void srscan __P((int));
/* systemname.c */
-char *systemname __P((struct quad *));
+const char *systemname __P((const struct quad *));
/* torped.c */
void torped __P((int));