summaryrefslogtreecommitdiff
path: root/sys/ddb/db_hangman.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-11-29 06:51:50 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-11-29 06:51:50 +0000
commitc9bb490f6a8b6539d476429aeee9e740dd9ee4b5 (patch)
treeed5a686e98cf78918503db4d8819958d0637329d /sys/ddb/db_hangman.c
parent7895e964c7eadf8aa2d6eb39fd0b6d13e6c1c7e3 (diff)
note 1024 limit on text+data.
Diffstat (limited to 'sys/ddb/db_hangman.c')
-rw-r--r--sys/ddb/db_hangman.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ddb/db_hangman.c b/sys/ddb/db_hangman.c
index d715a424c5c..ed1c9a18305 100644
--- a/sys/ddb/db_hangman.c
+++ b/sys/ddb/db_hangman.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_hangman.c,v 1.9 1996/11/28 19:01:49 niklas Exp $ */
+/* $OpenBSD: db_hangman.c,v 1.10 1996/11/29 06:51:49 mickey Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt, Michael Shalayeff
@@ -42,6 +42,14 @@
#define TOLOWER(c) (('A'<=(c)&&(c)<='Z')?(c)-'A'+'a':(c))
#define ISALPHA(c) (('a'<=(c)&&(c)<='z')||('A'<=(c)&&(c)<='Z'))
+/*
+ * if [ `size db_hangman.o | awk 'BEGIN {getline} {print $$1+$$2}'` -gt 1024 ];
+ * then
+ * echo 'hangman is too big!!!'
+ * fi
+ *
+ */
+
static __inline size_t db_random __P((size_t));
static __inline char *db_randomsym __P((size_t *));
void db_hang __P((int, char *, char *));