summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/terminal.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 /hunt/huntd/terminal.c
parent7562e03d5a67f7fca8205dbab0b115d63e08b0b7 (diff)
downloadbsdgames-darwin-4506ee6421a65ebf465cb3e1124f0ba604dbcb20.tar.gz
bsdgames-darwin-4506ee6421a65ebf465cb3e1124f0ba604dbcb20.zip
__STDC__ is always defined on NetBSD.
Diffstat (limited to 'hunt/huntd/terminal.c')
-rw-r--r--hunt/huntd/terminal.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/hunt/huntd/terminal.c b/hunt/huntd/terminal.c
index 94493531..fc98d0fa 100644
--- a/hunt/huntd/terminal.c
+++ b/hunt/huntd/terminal.c
@@ -1,4 +1,4 @@
-/* $NetBSD: terminal.c,v 1.2 1997/10/10 16:34:05 lukem Exp $ */
+/* $NetBSD: terminal.c,v 1.3 2002/05/26 00:12:13 wiz Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -7,16 +7,12 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: terminal.c,v 1.2 1997/10/10 16:34:05 lukem Exp $");
+__RCSID("$NetBSD: terminal.c,v 1.3 2002/05/26 00:12:13 wiz Exp $");
#endif /* not lint */
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-# include "hunt.h"
-# define TERM_WIDTH 80 /* Assume terminals are 80-char wide */
+#include "hunt.h"
+#define TERM_WIDTH 80 /* Assume terminals are 80-char wide */
/*
* cgoto:
@@ -110,22 +106,12 @@ ref(pp)
* Send a command to the given user
*/
void
-#if __STDC__
sendcom(PLAYER *pp, int command, ...)
-#else
-sendcom(pp, command, va_alist)
- PLAYER *pp;
- int command;
- va_dcl
-#endif
{
va_list ap;
int arg1, arg2;
-#if __STDC__
+
va_start(ap, command);
-#else
- va_start(ap);
-#endif
(void) putc(command, pp->p_output);
switch (command & 0377) {
case MOVE: