diff options
author | 2000-09-09 09:37:58 +0000 | |
---|---|---|
committer | 2000-09-09 09:37:58 +0000 | |
commit | ba39c14448dbd478ef92c7c05e19d12ced6c7177 (patch) | |
tree | d365e7cf9cc7c3b41610dae6b9e399713b1aede8 /battlestar/globals.c | |
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/globals.c')
-rw-r--r-- | battlestar/globals.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/battlestar/globals.c b/battlestar/globals.c index 7c743715..17d9428d 100644 --- a/battlestar/globals.c +++ b/battlestar/globals.c @@ -1,4 +1,4 @@ -/* $NetBSD: globals.c,v 1.10 2000/09/08 17:25:32 jsm Exp $ */ +/* $NetBSD: globals.c,v 1.11 2000/09/09 09:37:58 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)globals.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: globals.c,v 1.10 2000/09/08 17:25:32 jsm Exp $"); +__RCSID("$NetBSD: globals.c,v 1.11 2000/09/09 09:37:58 jsm Exp $"); #endif #endif /* not lint */ @@ -257,6 +257,6 @@ unsigned int wear[NUMOFWORDS]; char beenthere[NUMOFROOMS + 1]; char injuries[NUMOFINJURIES]; -char username[9]; +const char *username; struct wlist *hashtab[HASHSIZE]; |