From a59b491d37669e51053c17262118e5fec67ad358 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 20 Sep 2002 20:54:15 +0000 Subject: select() -> poll() Also, turn off talk announcements; it's a wretched hack. --- hunt/huntd/extern.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'hunt/huntd/extern.c') diff --git a/hunt/huntd/extern.c b/hunt/huntd/extern.c index e25ba836..d11b0ca5 100644 --- a/hunt/huntd/extern.c +++ b/hunt/huntd/extern.c @@ -1,4 +1,4 @@ -/* $NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $ */ +/* $NetBSD: extern.c,v 1.3 2002/09/20 20:54:16 mycroft Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -7,7 +7,7 @@ #include #ifndef lint -__RCSID("$NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $"); +__RCSID("$NetBSD: extern.c,v 1.3 2002/09/20 20:54:16 mycroft Exp $"); #endif /* not lint */ # include "hunt.h" @@ -20,10 +20,8 @@ char Buf[BUFSIZ]; /* general scribbling buffer */ char Maze[HEIGHT][WIDTH2]; /* the maze */ char Orig_maze[HEIGHT][WIDTH2]; /* the original maze */ -fd_set Fds_mask; /* mask for the file descriptors */ -fd_set Have_inp; /* which file descriptors have input */ +struct pollfd fdset[3+MAXPL+MAXMON]; int Nplayer = 0; /* number of players */ -int Num_fds; /* number of maximum file descriptor */ int Socket; /* main socket */ int Status; /* stat socket */ int See_over[NASCII]; /* lookup table for determining whether -- cgit v1.2.3