Commit Graph

34 Commits

Author SHA1 Message Date
elad 1232ea27c4 PR/18906: roskens at elfin dot net: misc. select() to poll() updates.
Adapted to -current by myself, thanks for the patch!
2006-10-07 17:27:57 +00:00
mrg 0c37c63edc change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
abs b4f3ebd201 Add a missing bp->b_score not null check - addresses Coverity CID 1003 2006-03-17 23:34:37 +00:00
wiz 0c305c1a7e Drop trailing whitespace. 2005-09-15 02:10:37 +00:00
dsl 49f7d8a9b1 Add (unsigned char) cast to ctype functions 2004-11-05 21:30:31 +00:00
jsm 10b61a7cca Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.
2004-02-08 22:23:50 +00:00
jsm cb5fd8342e Remove uses of __P. 2004-01-27 20:30:28 +00:00
wiz 45ddd67018 Make build. 2003-06-11 12:04:06 +00:00
wiz 1196717577 Merge with v20030416. 2003-06-11 12:00:21 +00:00
jdc e5c039ad54 Make this work on sparc64 (don't use long and assume sizeof(long) = 4).
Tested against a LE32 system (arm).
2003-02-26 07:14:44 +00:00
wiz c91d8d6b9b Lots of minor fixes resulting from reading these man pages in detail. 2002-09-26 18:31:58 +00:00
wiz 875690e96c Ispell. 2002-09-26 16:29:25 +00:00
mycroft 7d5f560aeb Minor rearrangement. 2002-09-20 21:00:01 +00:00
mycroft 67ba9a5805 select() -> poll()
Also, turn off talk announcements; it's a wretched hack.
2002-09-20 20:54:15 +00:00
wiz 7fd8f3df3f __STDC__ is always defined on NetBSD. 2002-05-26 00:12:11 +00:00
wiz 0a600be867 receive, not recieve 2001-06-12 15:17:10 +00:00
wiz 4982acfa1c mdoc'ify. 2001-04-04 11:41:01 +00:00
christos d3c5cea8f0 remove redundant decls 2001-02-05 00:42:14 +00:00
lukem f8141417ed - openlog "huntd" instead of "HUNT"
- consistently log non-critical errors at LOG_WARNING not LOG_ERR
- consistently use positive numbers for exit() and _exit()
- one warning was using printf() instead of syslog()
2001-01-09 23:49:54 +00:00
matt 3233065035 More include additions for exit, abs, strcmp, etc. 2000-07-03 03:57:39 +00:00
simonb 48a5c3efa9 Don't declare 'extern opt*' getopt variables. 2000-04-14 05:58:01 +00:00
mycroft f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
hubertf 1c9494f62b mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:27:25 +00:00
hubertf c31c912667 remove unneeded typedef for TTYB, as per PR#5867 1998-09-11 13:46:30 +00:00
mrg 32f519716b - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
lukem 3b2e6e2466 FD_ZERO select mask before FD_SET-ing it 1997-10-20 00:37:14 +00:00
mrg 6d4ad6d5a7 drop core in /var/tmp (from linux). 1997-10-15 12:02:08 +00:00
lukem ff943cc8ca use err/warn instead of perror 1997-10-11 08:13:40 +00:00
lukem 544a5e3331 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()
1997-10-10 16:32:15 +00:00
mrg 7da61b6eaa fix compiler warnings on the alpha. 1997-10-04 09:28:32 +00:00
mrg b1175274c8 note that huntd lives in /usr/games. 1997-10-04 09:16:27 +00:00
mrg 251a23a671 build hunt. 1997-10-04 09:11:14 +00:00
mrg 4052d13ded hunt version 1993-07-17 1997-10-04 09:00:13 +00:00