summaryrefslogtreecommitdiffstats
path: root/hack/hack.tty.c
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2002-05-26 00:12:11 +0000
committerwiz <wiz@NetBSD.org>2002-05-26 00:12:11 +0000
commit4506ee6421a65ebf465cb3e1124f0ba604dbcb20 (patch)
tree652f0004246ba71f034e73ec6027e89bfcfb1132 /hack/hack.tty.c
parent7562e03d5a67f7fca8205dbab0b115d63e08b0b7 (diff)
downloadbsdgames-darwin-4506ee6421a65ebf465cb3e1124f0ba604dbcb20.tar.gz
bsdgames-darwin-4506ee6421a65ebf465cb3e1124f0ba604dbcb20.tar.zst
bsdgames-darwin-4506ee6421a65ebf465cb3e1124f0ba604dbcb20.zip
__STDC__ is always defined on NetBSD.
Diffstat (limited to 'hack/hack.tty.c')
-rw-r--r--hack/hack.tty.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/hack/hack.tty.c b/hack/hack.tty.c
index 93831ce1..15a17d4c 100644
--- a/hack/hack.tty.c
+++ b/hack/hack.tty.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.tty.c,v 1.9 2001/03/25 20:44:03 jsm Exp $ */
+/* $NetBSD: hack.tty.c,v 1.10 2002/05/26 00:12:12 wiz Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)hack.tty.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: hack.tty.c,v 1.9 2001/03/25 20:44:03 jsm Exp $");
+__RCSID("$NetBSD: hack.tty.c,v 1.10 2002/05/26 00:12:12 wiz Exp $");
#endif
#endif /* not lint */
@@ -143,22 +143,11 @@ setftty()
/* fatal error */
/* VARARGS1 */
void
-#ifdef __STDC__
error(const char *fmt, ...)
-#else
-error(va_alist)
- va_dcl
-#endif
{
va_list ap;
-#ifndef __STDC__
- const char *fmt;
- va_start(ap);
- fmt = va_arg(ap, const char *);
-#else
va_start(ap, fmt);
-#endif
if (settty_needed)
settty((char *) 0);
vprintf(fmt, ap);