From 8e21e59afd48c51275d64af20b908bd4bc37c05f Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 29 Mar 1998 04:46:40 +0000 Subject: [PATCH] - really make extern char's extern. --- backgammon/backgammon/main.c | 8 ++++---- battlestar/extern.h | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backgammon/backgammon/main.c b/backgammon/backgammon/main.c index f58ccaf6..5cdb95e5 100644 --- a/backgammon/backgammon/main.c +++ b/backgammon/backgammon/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.5 1997/10/10 08:59:37 lukem Exp $ */ +/* $NetBSD: main.c,v 1.6 1998/03/29 04:46:40 mrg Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.5 1997/10/10 08:59:37 lukem Exp $"); +__RCSID("$NetBSD: main.c,v 1.6 1998/03/29 04:46:40 mrg Exp $"); #endif #endif /* not lint */ @@ -53,8 +53,8 @@ __RCSID("$NetBSD: main.c,v 1.5 1997/10/10 08:59:37 lukem Exp $"); #define MVPAUSE 5 /* time to sleep when stuck */ #define MAXUSERS 35 /* maximum number of users */ -char *instr[]; /* text of instructions */ -char *message[]; /* update message */ +extern char *instr[]; /* text of instructions */ +extern char *message[]; /* update message */ speed_t ospeed; /* tty output speed */ char *helpm[] = { /* help message */ diff --git a/battlestar/extern.h b/battlestar/extern.h index 19e8b310..d0053a8c 100644 --- a/battlestar/extern.h +++ b/battlestar/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.7 1998/02/03 05:39:25 perry Exp $ */ +/* $NetBSD: extern.h,v 1.8 1998/03/29 04:49:06 mrg Exp $ */ /* * Copyright (c) 1983, 1993 @@ -236,8 +236,8 @@ struct room { char *desc; unsigned int objects[NUMOFWORDS]; }; -struct room dayfile[]; -struct room nightfile[]; +extern struct room dayfile[]; +extern struct room nightfile[]; struct room *location; /* object characteristics */ @@ -294,14 +294,14 @@ struct wlist { #define HASHMUL 81 #define HASHMASK (HASHSIZE - 1) struct wlist *hashtab[HASHSIZE]; -struct wlist wlist[]; +extern struct wlist wlist[]; struct objs { short room; short obj; }; -struct objs dayobjs[]; -struct objs nightobjs[]; +extern struct objs dayobjs[]; +extern struct objs nightobjs[]; void blast __P((void)); void bury __P((void)); -- 2.47.1