summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-10-19 17:19:30 +0000
committerchristos <christos@NetBSD.org>2013-10-19 17:19:30 +0000
commit2a8e0dceaacbc707148905b721f341004c7ea365 (patch)
tree78a1d40f997319c41fdcc38b09243b14016f289b /hunt
parent3a0be2d0e88bf73dec95086fa0048c88f0b142d9 (diff)
downloadbsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.tar.gz
bsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.tar.zst
bsdgames-darwin-2a8e0dceaacbc707148905b721f341004c7ea365.zip
fix unused variable warnings
Diffstat (limited to 'hunt')
-rw-r--r--hunt/huntd/driver.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/hunt/huntd/driver.c b/hunt/huntd/driver.c
index 23096d77..ff5411d9 100644
--- a/hunt/huntd/driver.c
+++ b/hunt/huntd/driver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: driver.c,v 1.21 2011/08/31 16:24:56 plunky Exp $ */
+/* $NetBSD: driver.c,v 1.22 2013/10/19 17:23:08 christos Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: driver.c,v 1.21 2011/08/31 16:24:56 plunky Exp $");
+__RCSID("$NetBSD: driver.c,v 1.22 2013/10/19 17:23:08 christos Exp $");
#endif /* not lint */
#include <sys/ioctl.h>
@@ -88,7 +88,7 @@ main(int ac, char **av, char **ep)
PLAYER *pp;
#ifdef INTERNET
u_short msg;
- short port_num, reply;
+ short reply;
socklen_t namelen;
SOCKET test;
#endif
@@ -143,7 +143,6 @@ again:
#ifdef INTERNET
if (fdset[2].revents & POLLIN) {
namelen = DAEMON_SIZE;
- port_num = htons(sock_port);
(void) recvfrom(Test_socket, &msg, sizeof msg,
0, (struct sockaddr *) &test, &namelen);
switch (ntohs(msg)) {
@@ -599,7 +598,6 @@ zap(PLAYER *pp, FLAG was_player, int i)
BULLET *bp;
PLAYER *np;
int x, y;
- int savefd;
if (was_player) {
if (pp->p_undershot)
@@ -622,8 +620,6 @@ zap(PLAYER *pp, FLAG was_player, int i)
outstr(pp, pp->p_death, len);
cgoto(pp, HEIGHT, 0);
- savefd = pp->p_fd;
-
#ifdef MONITOR
if (was_player) {
#endif