summaryrefslogtreecommitdiff
path: root/games/gomoku/main.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-01-26 08:00:55 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-01-26 08:00:55 +0000
commitb714d2236d5b5117e39b441ebaa3bc772cc08973 (patch)
treed75ebf559577752cc1b141a141710b5ad1aab7d4 /games/gomoku/main.c
parentcd86a8668e92ba2e7fbedfac37b02ccc741557c2 (diff)
Check malloc() return value.
Diffstat (limited to 'games/gomoku/main.c')
-rw-r--r--games/gomoku/main.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/games/gomoku/main.c b/games/gomoku/main.c
index d01bd99d819..c75dbd6b20f 100644
--- a/games/gomoku/main.c
+++ b/games/gomoku/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.6 1997/01/15 23:40:49 millert Exp $ */
+/* $OpenBSD: main.c,v 1.7 1997/01/26 08:00:53 downsj Exp $ */
/*
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
@@ -513,6 +513,20 @@ log(str)
printf("%s\n", str);
}
+/*
+ * Deal with a fatal error.
+ */
+void
+qlog(str)
+ char *str;
+{
+ dlog(str);
+ if (interactive)
+ beep();
+ sleep(5);
+ quit(0);
+}
+
/* ARGSUSED */
void
quit(sig)