summaryrefslogtreecommitdiff
path: root/games/hunt
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-12-28 01:09:50 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-12-28 01:09:50 +0000
commit9cfa54a8d1e8cf520fc26eeada7b88059c741555 (patch)
tree3b9672520022d241ae984943636424d83dadc9ef /games/hunt
parentec7881de22a99513fa91106c3fa98f7905ef5f36 (diff)
Fix two obvious thinkos in va_end() usage.
Caught by gcc3.
Diffstat (limited to 'games/hunt')
-rw-r--r--games/hunt/huntd/terminal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hunt/huntd/terminal.c b/games/hunt/huntd/terminal.c
index 220938b0d6e..fccd219e36d 100644
--- a/games/hunt/huntd/terminal.c
+++ b/games/hunt/huntd/terminal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: terminal.c,v 1.6 2003/06/11 08:45:33 pjanzen Exp $ */
+/* $OpenBSD: terminal.c,v 1.7 2003/12/28 01:09:49 espie Exp $ */
/* $NetBSD: terminal.c,v 1.2 1997/10/10 16:34:05 lukem Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -247,7 +247,7 @@ logx(prio, fmt)
else if (conf_logerr)
/* if (prio < LOG_NOTICE) */
vwarnx(fmt, ap);
- va_end(fmt);
+ va_end(ap);
}
void
@@ -266,5 +266,5 @@ log(prio, fmt)
} else if (conf_logerr)
/* if (prio < LOG_NOTICE) */
vwarn(fmt, ap);
- va_end(fmt);
+ va_end(ap);
}