NetBSD/games/hunt/huntd/pathname.c
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

42 lines
921 B
C

/* $NetBSD: pathname.c,v 1.2 1997/10/10 16:33:49 lukem Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
* San Francisco, California
*/
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: pathname.c,v 1.2 1997/10/10 16:33:49 lukem Exp $");
#endif /* not lint */
/*
* There is no particular significance to the numbers assigned
* to Test_port. They're just random numbers greater than the
* range reserved for privileged sockets.
*/
# include <sys/types.h>
# ifdef DEBUG
char *Driver = "/home/socr/a/conrad/games/src/hunt/huntd.dbg";
# ifdef INTERNET
u_short Test_port = ('h' << 8) | 't';
# else
char *Sock_name = "/tmp/hunt";
char *Stat_name = "/tmp/hunt.stats";
# endif
# else
char *Driver = HUNTD;
# ifdef INTERNET
u_short Test_port = ('h' << 8) | 't';
# else
char *Sock_name = "/tmp/hunt";
char *Stat_name = "/tmp/hunt.stats";
# endif
# endif