Commit Graph

41 Commits

Author SHA1 Message Date
Marcel Moolenaar
b945938c63 Add type int to those variables without a type. This is caused by the
frequent use of ``register var'' instead of ``register int var'' and
the removal of the register hint in the previous commit.
1999-11-16 10:26:38 +00:00
Bill Fumerola
727bf60729 Sync our register usage with NetBSD's (non-)usage. 1999-11-16 02:58:06 +00:00
Bill Fumerola
879099e556 Add $FreeBSD$ 1999-11-16 02:45:03 +00:00
Marcel Moolenaar
e1c2c8c16e Move the #include directive up one line and out of the function body. 1999-09-12 07:01:23 +00:00
Bill Fumerola
c057c9b641 Avoid ambigious if() if() else(). 1999-09-07 06:00:03 +00:00
Bruce Evans
808697bc70 Attempt to fix world breakage for the NOSHARED=yes case. delay_output()
is in both hack and libncurses, and the elf static linker can't handle
the duplication.  This is probably the correct fix for hack (it makes
it clear that the ospeed stuff can go away), but its effect on hack
has not been tested, and the linker bug remains open.
1999-09-04 14:35:19 +00:00
Peter Wemm
04b193771d The ospeed hackery was disabled a while ago, finish the job. 1999-08-30 08:01:12 +00:00
Peter Wemm
9b7a44a60e $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
David E. O'Brien
64560c6afb Create score files root:games rather than bin:{games,bin}.
related-to-PR:	bin/8440
Submitted by:	Stephen J. Roznowski sjr@home.net
1999-06-23 04:26:37 +00:00
Bruce Evans
7a5cfeb446 Fixed CLEANFILES. 1998-12-27 15:04:33 +00:00
John Birrell
4912e23d67 Build the makedefs program static to avoid trying to use the shared
loader before it has been installed in an aout to elf transition build.
1998-08-15 07:56:07 +00:00
Warner Losh
e05ce16e87 o Fix Y2K buffer overflow.
o Fix zero filling bug in all years % 100 < 10.
1998-07-26 16:00:16 +00:00
Bruce Evans
5325b598c0 Added a `build-tools' target for internal tools.
Honor LDFLAGS for building internal tools.

Always build intermediate object files explicitly so that binaries don't
change when they are rebuilt.

Fixed some style bugs.
1998-07-07 01:41:58 +00:00
John Birrell
47b18310e8 Add #include string.h to get prototypes. 1998-05-09 11:06:46 +00:00
John Birrell
7acec2e638 Remove #define NULL because stdio.h does that. 1998-05-09 10:03:01 +00:00
John Birrell
cd5048d0d8 Add #include string.h to get prototypes. 1998-05-09 09:54:17 +00:00
Philippe Charnier
4d524c2efc Use Id instead of Header. 1998-04-01 06:13:47 +00:00
Bruce Evans
3f9035b74a Don't use the FreeBSD misfeature DPSRCS or give explicit dependencies
on generated headers.  Just put generated headers in SRCS so that
bsd.*.mk can generate better dependencies.
1998-03-06 07:00:28 +00:00
Andrey A. Chernov
29f700bbe6 Use include for malloc declaration 1997-09-24 21:09:17 +00:00
Andrey A. Chernov
81c9c0b61a Oops, to many zeroes was in usleep arg 1997-09-24 20:19:59 +00:00
Andrey A. Chernov
1e78fbb86a Remove setuid, uneeded now 1997-09-24 18:03:26 +00:00
Andrey A. Chernov
d998e708c6 Make hack non-setuid back, it is possible because hackdir hierarchy
are not more readable/writeable by anyone except "games" group
1997-09-24 17:43:46 +00:00
Andrey A. Chernov
0f8da203cb Includes cleanup
Fix nonull flag detecting from termcap
Use usleep to handle nonull case
Prevent overflow on genocided getenv
Install most files not owned by games.games to prevent
data modifications
Fix path for gethdate()
1997-09-24 12:29:25 +00:00
Andrey A. Chernov
fd2fc75769 Use SUIDGAME hook now 1997-09-24 10:00:29 +00:00
Andrey A. Chernov
9c933175d6 Since hack suid now, add -fschg to install flags to prevent this
binary to be overwritted
1997-09-24 09:45:57 +00:00
Andrey A. Chernov
f878600f8a Make hack suid "games" (additionly to sgid "games" as run),
it is needed for savegames and bones, they
intendent to not be altered by user and can't be pre-created as scorefile.
Clear savegames on install: target too, not only bones
Install rumors not readable by all.
Cleanup includes a little.
1997-09-24 08:58:44 +00:00
Andrey A. Chernov
6ddb7ba55a Simplify revoke 1997-09-24 08:09:04 +00:00
Andrey A. Chernov
3320fc4786 Use srandomdev 1997-09-24 05:18:42 +00:00
Andrey A. Chernov
79858acfa5 Do not install 3 files writeable by all (666), change it to 664 1997-09-24 00:07:08 +00:00
Eivind Eklund
34a13bf4cb Change games from setuid games to setgid games.
Reviewed by:	maybe@yes.no
Obtained from:	OpenBSD (mostly deraadt@openbsd.org)
1997-09-01 00:34:51 +00:00
Wolfram Schneider
c6234bb251 444 -> ${NOBINMODE}
/usr/share -> ${SHAREDIR}
/usr/games -> ${BINDIR}
1997-02-09 02:52:41 +00:00
Jordan K. Hubbard
0a9fa9a339 Install the rumors file.
Submitted-By: koshy@india.hp.com
Closes-PR#: 1883
1996-10-19 20:11:45 +00:00
Nate Williams
d953e28acd The Makefile assumed that builder had '.' in it's path, which is a
security hole for root.  Fix this oversight and clean up the build of
'hack.onames.h' which should be built everytime.

Tested with/without obj directories and .depend files.

Noticed by:	"Christoph P. Kukulies" <kuku@gilberto.physik.rwth-aachen.de>
1996-05-15 16:54:05 +00:00
Andrey A. Chernov
f0c8f81c61 Add missing entries to speedtable 1995-08-04 09:42:05 +00:00
Bruce Evans
9c0dc173cc Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
1995-07-25 00:37:58 +00:00
Bruce Evans
278e874772 Remove bogus references to /usr/ucb. 1995-06-26 06:40:23 +00:00
Rodney W. Grimes
010f5413b5 Remove trailing whitespace. 1995-05-30 03:37:36 +00:00
Rodney W. Grimes
e6ba2cd30e Fix nested comments for -Wcomment warnings. 1995-05-09 13:33:06 +00:00
Andreas Schulz
5dd2c633c9 Add a -fwritable-strings to the CFLAGS. hack need it :-). 1994-11-26 16:15:44 +00:00
Rodney W. Grimes
0e58d91938 Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap 1994-09-11 21:32:28 +00:00
Jordan K. Hubbard
554eb505f8 Bring in the 4.4 Lite games directory, modulo man page changes and segregation
of the x11 based games.  I'm not going to tag the originals with bsd_44_lite
and do this in two stages since it's just not worth it for this collection,
and I've got directory renames to deal with that way.  Bleah.
Submitted by:	jkh
1994-09-04 04:03:31 +00:00