summaryrefslogtreecommitdiff
path: root/sys/ddb/db_hangman.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-10 13:58:45 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-10 13:58:45 +0000
commit2319b3532d3706171dd28861d0758c455fbdf400 (patch)
treed8cfcfc48ae6df645ceb1eb4502908579f55a106 /sys/ddb/db_hangman.c
parent7afb6a8263f1352e0e6504a2b01051ebee6fcdd4 (diff)
do dynamic symtab allocattion.
Diffstat (limited to 'sys/ddb/db_hangman.c')
-rw-r--r--sys/ddb/db_hangman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_hangman.c b/sys/ddb/db_hangman.c
index 9c0a330387a..d4b70d4ccac 100644
--- a/sys/ddb/db_hangman.c
+++ b/sys/ddb/db_hangman.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_hangman.c,v 1.2 1996/05/07 12:34:37 mickey Exp $ */
+/* $OpenBSD: db_hangman.c,v 1.3 1996/05/10 13:58:43 mickey Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt, Michael Shalayeff
@@ -67,7 +67,7 @@ db_randomsym(lenp)
{
register char *p, *q;
/* choose random symtab */
- register db_symtab_t *stab = db_istab(db_random(db_nsymtabs));
+ register db_symtab_t stab = db_istab(db_random(db_nsymtabs));
/* choose random symbol from the table */
q = db_qualify(X_db_isym(stab, db_random(X_db_nsyms(stab))),stab->name);