From d91aeebe629b8428e564df33c93bb69195d28cc3 Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 21 Jul 1999 13:19:10 +0000 Subject: const poisoning Patch submitted in PR 8039 by Joseph Myers --- trek/trek.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'trek/trek.h') 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)); -- cgit v1.2.3-56-ge451