From 50f99331097302f77db413ba7ad7299d928163eb Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 10 Oct 1997 16:32:15 +0000 Subject: Yet Another Monster Commit: - WARNSify - getopt returns -1 not EOF - select() uses an fd_set, not int/long; modify code to use FD_* et al instead of direct bitwise operations - in otto.c::look (renamed to ottolook() to prevent name clash), the case WEST section had a 'goto cont_east', instead of 'goto cont_west'. (picked up by WARNS=1, because cont_west was an unused label because of this typo). probably meant that otto got lost in the maze :-/ - deprecate register, convert bcmp() -> memcmp() --- hunt/huntd/extern.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'hunt/huntd/extern.c') diff --git a/hunt/huntd/extern.c b/hunt/huntd/extern.c index 64e5fccf..e25ba836 100644 --- a/hunt/huntd/extern.c +++ b/hunt/huntd/extern.c @@ -1,9 +1,15 @@ +/* $NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold * San Francisco, California */ +#include +#ifndef lint +__RCSID("$NetBSD: extern.c,v 1.2 1997/10/10 16:33:24 lukem Exp $"); +#endif /* not lint */ + # include "hunt.h" # ifdef MONITOR @@ -14,14 +20,12 @@ char Buf[BUFSIZ]; /* general scribbling buffer */ char Maze[HEIGHT][WIDTH2]; /* the maze */ char Orig_maze[HEIGHT][WIDTH2]; /* the original maze */ -long Fds_mask; /* mask for the file descriptors */ -int Have_inp; /* which file descriptors have input */ +fd_set Fds_mask; /* mask for the file descriptors */ +fd_set Have_inp; /* which file descriptors have input */ int Nplayer = 0; /* number of players */ int Num_fds; /* number of maximum file descriptor */ int Socket; /* main socket */ -long Sock_mask; /* select mask for main socket */ int Status; /* stat socket */ -long Stat_mask; /* select mask for stat socket */ int See_over[NASCII]; /* lookup table for determining whether * character represents "transparent" * item */ -- cgit v1.2.3-56-ge451