diff options
Diffstat (limited to 'games/trek')
-rw-r--r-- | games/trek/computer.c | 6 | ||||
-rw-r--r-- | games/trek/externs.c | 8 | ||||
-rw-r--r-- | games/trek/getpar.c | 32 | ||||
-rw-r--r-- | games/trek/getpar.h | 12 | ||||
-rw-r--r-- | games/trek/help.c | 6 | ||||
-rw-r--r-- | games/trek/kill.c | 6 | ||||
-rw-r--r-- | games/trek/lose.c | 6 | ||||
-rw-r--r-- | games/trek/out.c | 6 | ||||
-rw-r--r-- | games/trek/phaser.c | 8 | ||||
-rw-r--r-- | games/trek/play.c | 8 | ||||
-rw-r--r-- | games/trek/setup.c | 10 | ||||
-rw-r--r-- | games/trek/shield.c | 18 | ||||
-rw-r--r-- | games/trek/srscan.c | 10 | ||||
-rw-r--r-- | games/trek/systemname.c | 11 | ||||
-rw-r--r-- | games/trek/trek.h | 18 | ||||
-rw-r--r-- | games/trek/win.c | 6 |
16 files changed, 86 insertions, 85 deletions
diff --git a/games/trek/computer.c b/games/trek/computer.c index 79ae886a814..204b8c7f551 100644 --- a/games/trek/computer.c +++ b/games/trek/computer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: computer.c,v 1.3 1999/03/12 03:02:40 pjanzen Exp $ */ +/* $OpenBSD: computer.c,v 1.4 1999/07/31 18:48:58 pjanzen Exp $ */ /* $NetBSD: computer.c,v 1.4 1995/04/24 12:25:51 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)computer.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: computer.c,v 1.3 1999/03/12 03:02:40 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: computer.c,v 1.4 1999/07/31 18:48:58 pjanzen Exp $"; #endif #endif /* not lint */ @@ -117,7 +117,7 @@ computer(v) int ix, iy; register int i, j; int tqx, tqy; - struct cvntab *r; + const struct cvntab *r; int cost; int course; double dist, time; diff --git a/games/trek/externs.c b/games/trek/externs.c index 731770e28c9..00124c0ff8f 100644 --- a/games/trek/externs.c +++ b/games/trek/externs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: externs.c,v 1.2 1998/08/19 07:41:34 pjanzen Exp $ */ +/* $OpenBSD: externs.c,v 1.3 1999/07/31 18:48:58 pjanzen Exp $ */ /* $NetBSD: externs.c,v 1.3 1995/04/22 10:58:53 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)externs.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: externs.c,v 1.2 1998/08/19 07:41:34 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: externs.c,v 1.3 1999/07/31 18:48:58 pjanzen Exp $"; #endif #endif /* not lint */ @@ -48,7 +48,7 @@ static char rcsid[] = "$OpenBSD: externs.c,v 1.2 1998/08/19 07:41:34 pjanzen Exp ** global variable definitions */ -struct device Device[NDEV] = +const struct device Device[NDEV] = { { "warp drive", "Scotty" }, { "S.R. scanners", "Scotty" }, @@ -68,7 +68,7 @@ struct device Device[NDEV] = { "*ERR 15*", "Nobody" } }; -char *Systemname[NINHAB] = +const char *const Systemname[NINHAB] = { "ERROR", "Talos IV", diff --git a/games/trek/getpar.c b/games/trek/getpar.c index 8a8ac93e0cc..0ce6b908b23 100644 --- a/games/trek/getpar.c +++ b/games/trek/getpar.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getpar.c,v 1.3 1999/03/12 03:02:41 pjanzen Exp $ */ +/* $OpenBSD: getpar.c,v 1.4 1999/07/31 18:48:58 pjanzen Exp $ */ /* $NetBSD: getpar.c,v 1.4 1995/04/24 12:25:57 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)getpar.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: getpar.c,v 1.3 1999/03/12 03:02:41 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: getpar.c,v 1.4 1999/07/31 18:48:58 pjanzen Exp $"; #endif #endif /* not lint */ @@ -55,7 +55,7 @@ static int testterm __P((void)); int getintpar(s) - char *s; + const char *s; { register int i; int n; @@ -80,7 +80,7 @@ getintpar(s) double getfltpar(s) - char *s; + const char *s; { register int i; double d; @@ -103,7 +103,7 @@ getfltpar(s) ** get yes/no parameter **/ -struct cvntab Yntab[] = +const struct cvntab Yntab[] = { { "y", "es", (cmdfun)1, 1 }, { "n", "o", (cmdfun)0, 0 }, @@ -112,9 +112,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); @@ -125,15 +125,15 @@ getynpar(s) ** get coded parameter **/ -struct cvntab * +const struct cvntab * getcodpar(s, tab) - char *s; - struct cvntab tab[]; + const char *s; + const struct cvntab tab[]; { char input[100]; - register struct cvntab *r; + const struct cvntab *r; int flag; - register char *p, *q; + const char *p, *q; int c; int f; @@ -206,10 +206,10 @@ getcodpar(s, 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; { register int i; char format[20]; diff --git a/games/trek/getpar.h b/games/trek/getpar.h index ce8cb129198..5cd8f479447 100644 --- a/games/trek/getpar.h +++ b/games/trek/getpar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: getpar.h,v 1.2 1998/08/19 07:41:38 pjanzen Exp $ */ +/* $OpenBSD: getpar.h,v 1.3 1999/07/31 18:48:58 pjanzen Exp $ */ /* $NetBSD: getpar.h,v 1.3 1995/04/22 10:58:59 cgd Exp $ */ /* @@ -48,11 +48,11 @@ struct cvntab /* used for getcodpar() paramater list */ int value2; }; -int getintpar __P((char *)); -double getfltpar __P((char *)); -int getynpar __P((char *)); -struct cvntab *getcodpar __P((char *, struct cvntab[])); -void getstrpar __P((char *, char *, int, char *)); +int getintpar __P((const char *)); +double getfltpar __P((const char *)); +int getynpar __P((const char *)); +const struct cvntab *getcodpar __P((const char *, const struct cvntab[])); +void getstrpar __P((const char *, char *, int, const char *)); int testnl __P((void)); void skiptonl __P((int)); int readdelim __P((int)); diff --git a/games/trek/help.c b/games/trek/help.c index fba6b90a84b..be9fd9b4bc3 100644 --- a/games/trek/help.c +++ b/games/trek/help.c @@ -1,4 +1,4 @@ -/* $OpenBSD: help.c,v 1.2 1998/08/19 07:41:39 pjanzen Exp $ */ +/* $OpenBSD: help.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $ */ /* $NetBSD: help.c,v 1.3 1995/04/22 10:59:01 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)help.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: help.c,v 1.2 1998/08/19 07:41:39 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: help.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $"; #endif #endif /* not lint */ @@ -67,7 +67,7 @@ static char rcsid[] = "$OpenBSD: help.c,v 1.2 1998/08/19 07:41:39 pjanzen Exp $" ** to drop you. After that, it's your problem. */ -char *Cntvect[3] = +const char *const Cntvect[3] = {"first", "second", "third"}; void diff --git a/games/trek/kill.c b/games/trek/kill.c index 9f5515d0f46..c83e053e7be 100644 --- a/games/trek/kill.c +++ b/games/trek/kill.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kill.c,v 1.2 1998/08/19 07:41:43 pjanzen Exp $ */ +/* $OpenBSD: kill.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $ */ /* $NetBSD: kill.c,v 1.3 1995/04/22 10:59:06 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kill.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: kill.c,v 1.2 1998/08/19 07:41:43 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: kill.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $"; #endif #endif /* not lint */ @@ -159,7 +159,7 @@ kills(x, y, f) { register struct quad *q; register struct event *e; - register char *name; + const char *name; if (f) { diff --git a/games/trek/lose.c b/games/trek/lose.c index 98cf149f095..4eb2917843c 100644 --- a/games/trek/lose.c +++ b/games/trek/lose.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lose.c,v 1.2 1998/08/19 07:41:46 pjanzen Exp $ */ +/* $OpenBSD: lose.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $ */ /* $NetBSD: lose.c,v 1.3 1995/04/22 10:59:08 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)lose.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: lose.c,v 1.2 1998/08/19 07:41:46 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: lose.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $"; #endif #endif /* not lint */ @@ -56,7 +56,7 @@ static char rcsid[] = "$OpenBSD: lose.c,v 1.2 1998/08/19 07:41:46 pjanzen Exp $" ** actions which need be taken are taken. */ -char *Losemsg[] = +const char *const Losemsg[] = { "You ran out of time", "You ran out of energy", diff --git a/games/trek/out.c b/games/trek/out.c index b14bb0374e5..f949c354639 100644 --- a/games/trek/out.c +++ b/games/trek/out.c @@ -1,4 +1,4 @@ -/* $OpenBSD: out.c,v 1.2 1998/08/19 07:41:52 pjanzen Exp $ */ +/* $OpenBSD: out.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $ */ /* $NetBSD: out.c,v 1.3 1995/04/22 10:59:16 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)out.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: out.c,v 1.2 1998/08/19 07:41:52 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: out.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $"; #endif #endif /* not lint */ @@ -53,7 +53,7 @@ void out(dev) int dev; { - register struct device *d; + const struct device *d; d = &Device[dev]; printf("%s reports %s ", d->person, d->name); diff --git a/games/trek/phaser.c b/games/trek/phaser.c index 754d7861053..756ed0de880 100644 --- a/games/trek/phaser.c +++ b/games/trek/phaser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: phaser.c,v 1.3 1999/03/12 03:02:43 pjanzen Exp $ */ +/* $OpenBSD: phaser.c,v 1.4 1999/07/31 18:48:59 pjanzen Exp $ */ /* $NetBSD: phaser.c,v 1.4 1995/04/24 12:26:02 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)phaser.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: phaser.c,v 1.3 1999/03/12 03:02:43 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: phaser.c,v 1.4 1999/07/31 18:48:59 pjanzen Exp $"; #endif #endif /* not lint */ @@ -78,7 +78,7 @@ static char rcsid[] = "$OpenBSD: phaser.c,v 1.3 1999/03/12 03:02:43 pjanzen Exp ** Phasers spread slightly, even if you specify zero spread. */ -struct cvntab Matab[] = +const struct cvntab Matab[] = { { "m", "anual", (cmdfun)1, 0 }, { "a", "utomatic", (cmdfun)0, 0 }, @@ -109,7 +109,7 @@ phaser(v) int n; int hitreqd[NBANKS]; struct banks bank[NBANKS]; - struct cvntab *ptr; + const struct cvntab *ptr; if (Ship.cond == DOCKED) { diff --git a/games/trek/play.c b/games/trek/play.c index 4996d495a78..61fd5524064 100644 --- a/games/trek/play.c +++ b/games/trek/play.c @@ -1,4 +1,4 @@ -/* $OpenBSD: play.c,v 1.2 1998/08/19 07:41:55 pjanzen Exp $ */ +/* $OpenBSD: play.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $ */ /* $NetBSD: play.c,v 1.3 1995/04/22 10:59:18 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)play.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: play.c,v 1.2 1998/08/19 07:41:55 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: play.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $"; #endif #endif /* not lint */ @@ -58,7 +58,7 @@ static char rcsid[] = "$OpenBSD: play.c,v 1.2 1998/08/19 07:41:55 pjanzen Exp $" ** on how we are doing after the move. */ -struct cvntab Comtab[] = +const struct cvntab Comtab[] = { { "abandon", "", abandon, 0 }, { "ca", "pture", capture, 0 }, @@ -98,7 +98,7 @@ myreset(v) void play() { - struct cvntab *r; + const struct cvntab *r; while (1) { diff --git a/games/trek/setup.c b/games/trek/setup.c index 9da38ac9396..97018f610e5 100644 --- a/games/trek/setup.c +++ b/games/trek/setup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setup.c,v 1.2 1998/08/19 07:42:03 pjanzen Exp $ */ +/* $OpenBSD: setup.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $ */ /* $NetBSD: setup.c,v 1.4 1995/04/24 12:26:06 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: setup.c,v 1.2 1998/08/19 07:42:03 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: setup.c,v 1.3 1999/07/31 18:48:59 pjanzen Exp $"; #endif #endif /* not lint */ @@ -61,7 +61,7 @@ static char rcsid[] = "$OpenBSD: setup.c,v 1.2 1998/08/19 07:42:03 pjanzen Exp $ ** Game restart and tournament games are handled here. */ -struct cvntab Lentab[] = +const struct cvntab Lentab[] = { { "s", "hort", (cmdfun)1, 0 }, { "m", "edium", (cmdfun)2, 0 }, @@ -70,7 +70,7 @@ struct cvntab Lentab[] = { NULL, NULL, NULL, 0 } }; -struct cvntab Skitab[] = +const struct cvntab Skitab[] = { { "n", "ovice", (cmdfun)1, 0 }, { "f", "air", (cmdfun)2, 0 }, @@ -84,7 +84,7 @@ struct cvntab Skitab[] = void setup() { - struct cvntab *r; + const struct cvntab *r; register int i, j; double f; int d; diff --git a/games/trek/shield.c b/games/trek/shield.c index bf546858aff..94f9dc2e89b 100644 --- a/games/trek/shield.c +++ b/games/trek/shield.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shield.c,v 1.2 1998/08/19 07:42:06 pjanzen Exp $ */ +/* $OpenBSD: shield.c,v 1.3 1999/07/31 18:49:00 pjanzen Exp $ */ /* $NetBSD: shield.c,v 1.4 1995/04/24 12:26:09 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)shield.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: shield.c,v 1.2 1998/08/19 07:42:06 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: shield.c,v 1.3 1999/07/31 18:49:00 pjanzen Exp $"; #endif #endif /* not lint */ @@ -63,7 +63,7 @@ static char rcsid[] = "$OpenBSD: shield.c,v 1.2 1998/08/19 07:42:06 pjanzen Exp ** so you get partial hits. */ -struct cvntab Udtab[] = +const struct cvntab Udtab[] = { { "u", "p", (cmdfun)1, 0 }, { "d", "own", (cmdfun)0, 0 }, @@ -74,12 +74,12 @@ void shield(f) int f; { - register int i; - struct cvntab *r; - char s[100]; - char *device, *dev2, *dev3; - int ind; - char *stat; + register int i; + const struct cvntab *r; + char s[100]; + const char *device, *dev2, *dev3; + int ind; + char *stat; if (f > 0 && (Ship.shldup || damaged(SRSCAN))) return; diff --git a/games/trek/srscan.c b/games/trek/srscan.c index 9b2599f48c2..bb66771608a 100644 --- a/games/trek/srscan.c +++ b/games/trek/srscan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: srscan.c,v 1.3 1999/03/12 03:02:44 pjanzen Exp $ */ +/* $OpenBSD: srscan.c,v 1.4 1999/07/31 18:49:00 pjanzen Exp $ */ /* $NetBSD: srscan.c,v 1.3 1995/04/22 10:59:31 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)srscan.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: srscan.c,v 1.3 1999/03/12 03:02:44 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: srscan.c,v 1.4 1999/07/31 18:49:00 pjanzen Exp $"; #endif #endif /* not lint */ @@ -61,7 +61,7 @@ static char rcsid[] = "$OpenBSD: srscan.c,v 1.3 1999/03/12 03:02:44 pjanzen Exp ** The current quadrant is filled in on the computer chart. */ -char *Color[4] = +const char *const Color[4] = { "GREEN", "DOCKED", @@ -75,10 +75,10 @@ srscan(f) { register int i, j; register int statinfo; - char *s; + const char *s; int percent; struct quad *q = NULL; - struct cvntab *p; + const struct cvntab *p; if (f >= 0 && check_out(SRSCAN)) return; diff --git a/games/trek/systemname.c b/games/trek/systemname.c index a46b9c3bcca..fc9ee4c6497 100644 --- a/games/trek/systemname.c +++ b/games/trek/systemname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systemname.c,v 1.2 1998/08/19 07:42:10 pjanzen Exp $ */ +/* $OpenBSD: systemname.c,v 1.3 1999/07/31 18:49:00 pjanzen Exp $ */ /* $NetBSD: systemname.c,v 1.3 1995/04/22 10:59:32 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)systemname.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: systemname.c,v 1.2 1998/08/19 07:42:10 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: systemname.c,v 1.3 1999/07/31 18:49:00 pjanzen Exp $"; #endif #endif /* not lint */ @@ -55,10 +55,11 @@ static char rcsid[] = "$OpenBSD: systemname.c,v 1.2 1998/08/19 07:42:10 pjanzen ** starsystems, etc. */ -char *systemname(q1) -struct quad *q1; +const char * +systemname(q1) + const struct quad *q1; { - register struct quad *q; + const struct quad *q; register int i; q = q1; diff --git a/games/trek/trek.h b/games/trek/trek.h index ca53e92de1d..a54981491a2 100644 --- a/games/trek/trek.h +++ b/games/trek/trek.h @@ -1,4 +1,4 @@ -/* $OpenBSD: trek.h,v 1.4 1999/03/12 03:02:45 pjanzen Exp $ */ +/* $OpenBSD: trek.h,v 1.5 1999/07/31 18:49:00 pjanzen Exp $ */ /* $NetBSD: trek.h,v 1.3 1995/04/22 10:59:36 cgd Exp $ */ /* @@ -91,7 +91,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; @@ -514,7 +514,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)); diff --git a/games/trek/win.c b/games/trek/win.c index 1ee3bfeeb2f..164d37a73b9 100644 --- a/games/trek/win.c +++ b/games/trek/win.c @@ -1,4 +1,4 @@ -/* $OpenBSD: win.c,v 1.2 1998/08/19 07:42:18 pjanzen Exp $ */ +/* $OpenBSD: win.c,v 1.3 1999/07/31 18:49:00 pjanzen Exp $ */ /* $NetBSD: win.c,v 1.3 1995/04/22 10:59:41 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)win.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: win.c,v 1.2 1998/08/19 07:42:18 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: win.c,v 1.3 1999/07/31 18:49:00 pjanzen Exp $"; #endif #endif /* not lint */ @@ -65,7 +65,7 @@ void win() { long s; - register struct cvntab *p = NULL; + const struct cvntab *p = NULL; extern jmp_buf env; sleep(1); |