diff options
author | jsm <jsm@NetBSD.org> | 2000-09-09 09:37:58 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 2000-09-09 09:37:58 +0000 |
commit | ba39c14448dbd478ef92c7c05e19d12ced6c7177 (patch) | |
tree | d365e7cf9cc7c3b41610dae6b9e399713b1aede8 /battlestar/extern.h | |
parent | 964291ab94b8c99e06c7eb639459f9a62dabeb7c (diff) | |
download | bsdgames-darwin-ba39c14448dbd478ef92c7c05e19d12ced6c7177.tar.gz bsdgames-darwin-ba39c14448dbd478ef92c7c05e19d12ced6c7177.tar.zst bsdgames-darwin-ba39c14448dbd478ef92c7c05e19d12ced6c7177.zip |
Store copy of username with strdup rather than using a fixed length
buffer. Also make initialization functions and arrays static.
Diffstat (limited to 'battlestar/extern.h')
-rw-r--r-- | battlestar/extern.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/battlestar/extern.h b/battlestar/extern.h index 45477601..055466bd 100644 --- a/battlestar/extern.h +++ b/battlestar/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.18 2000/09/09 09:36:23 jsm Exp $ */ +/* $NetBSD: extern.h,v 1.19 2000/09/09 09:37:58 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -285,7 +285,7 @@ extern unsigned int wear[NUMOFWORDS]; extern char beenthere[NUMOFROOMS + 1]; extern char injuries[NUMOFINJURIES]; -extern char username[9]; +extern const char *username; struct wlist { const char *string; @@ -310,7 +310,6 @@ extern const struct objs nightobjs[]; void blast __P((void)); void bury __P((void)); int card __P((const char *, int)); -int checkout __P((const char *)); void chime __P((void)); void convert __P((int)); void crash __P((void)); @@ -327,7 +326,6 @@ void endfly __P((void)); int fight __P((int, int)); int follow __P((void)); char *getcom __P((char *, int, const char *, const char *)); -void getutmp __P((char *)); char *getword __P((char *, char *, int)); int give __P((void)); int hash __P((const char *)); @@ -372,7 +370,6 @@ int use __P((void)); int visual __P((void)); int wearit __P((void)); void whichway __P((struct room)); -int wizard __P((const char *)); void wordinit __P((void)); void writedes __P((void)); int zzz __P((void)); |