Commit Graph

16 Commits

Author SHA1 Message Date
Bruce Evans
b8483c75e1 Don't declare the library variable `ospeed' without even getting its
type correct.  Include <termcap.h> to get its declaration.  Our
initialization of it is still dubious, but it agrees with ncurses'
documentation of it (none) and with ncurses' recently fixed internals
for it (old speeds from <sys/ttydev.h>) and with the 4.4Lite
documentation for it.
2002-02-02 09:37:20 +00:00
Dima Dorfman
9429078c33 list' should be an extern'd char **', not a local `char *' which we
never set.  Ideally, we'd get the extern from tutor.h, but that
defines a number of other variables that conflict with ours.

This fixes a segmentation fault when trying to return to the main menu.

PR:		30172
2001-09-03 14:19:46 +00:00
Bill Fumerola
7b216475bf copyright/sccsid/rcsid cleanup. 1999-11-30 03:50:02 +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
Steve Price
af71cfbb87 Merge a bunch of cleanups from NetBSD.
PR:		8083
Submitted by:	Stephen J. Roznowski <sjr@home.net>
Obtained from:	a whole slew of NetBSD PRs
1999-04-19 03:59:02 +00:00
John Birrell
97600f584f Add 'extern' to arrays that are declared and initialised in other files. 1998-05-09 09:27:33 +00:00
Andrey A. Chernov
d6380c6820 Simplify revoke 1997-09-24 09:14:38 +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
Masafumi Max NAKANE
10c4031d64 Instead of swapping ruid and euid before and after touching user's file,
simply drop the privilege right after the program is started.
Thanks to bde for giving me good suggestion about this problem.
1997-02-01 21:30:50 +00:00
Masafumi Max NAKANE
731955402d Style police:
- Indentation corrections
  - Spaces -> tabs.
  - func() -> func () (To be consistent with the original code.)
  - Check if getopt() returns -1, not EOF.

Suggested by:	bde
1997-01-31 15:04:23 +00:00
Masafumi Max NAKANE
7475ed31b5 Better handling of command-line argument:
1. Pass argc and argv to getarg and process them with getopt().
  2. Instead of using an array to save arg characters, use array of
    pointers and call backgammon/teachgammon with execv, instead of execl.

This should fix problems with calling teachgammon.
2.2 candidate.
1997-01-30 07:12:59 +00:00
Masafumi Max NAKANE
427910f0e2 Fix typo in instruction message. 1997-01-23 09:02:49 +00:00
Rodney W. Grimes
010f5413b5 Remove trailing whitespace. 1995-05-30 03:37:36 +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