dholland
da121b3331
sprinkle static
2009-08-12 08:54:54 +00:00
dholland
8842f79b56
Remove description of -a option and optional log file name, since
...
neither has done anything in a long long time. Add previously
undocumented -s/-f (slow vs. fast) options, although I question the
utility thereof and suspect they should just be removed.
Bump date (first time since 1993)
2009-05-25 00:53:46 +00:00
dholland
96ebfddf0f
sprintf -> snprintf.
2009-05-25 00:43:34 +00:00
dholland
869c9375c3
"abbreviation" has two Bs.
2009-05-25 00:39:45 +00:00
dholland
3ae4e09ad9
Use random() instead of rand(), so we get something like random
...
numbers out.
This changes the "tournament codes"; that is, the same code will give
you a different game now from what it used to. (This is because the
codes are basically random seeds.) I really really doubt anyone cares
about this, especially since the tournament feature appears to be
undocumented.
2009-05-25 00:37:27 +00:00
dholland
014e646e3e
Remove obviously botched test for "fast mode" based on terminal speed.
...
Default to "fast mode" as ~nobody has a 300 baud terminal any more.
("Fast mode" apparently controls whether short-range scans are printed
by default at certain times.)
2009-05-25 00:29:08 +00:00
dholland
4d0e1ebeea
Use getopt to handle the remaining (all currently undocumented) options.
2009-05-25 00:25:58 +00:00
dholland
fdeec4afb6
Remove last traces of undocumented -p option (apparently related to
...
process priority) and documented -a option, neither of which have
done anything since CSRG days.
2009-05-25 00:20:22 +00:00
dholland
5f12e3fad3
Don't give special privileges to uid 13107.
2009-05-25 00:12:32 +00:00
dholland
b9b8495125
__attribute__((__noreturn__)) -> __dead
2009-05-25 00:07:14 +00:00
dholland
01781d3f3f
Null for pointers, not 0.
2009-05-25 00:05:56 +00:00
dholland
a16adbcbde
Fix score printing so columns line up.
2009-05-25 00:03:18 +00:00
dholland
db2522cfd8
Abolish cgetc(). It contained one line of code, which was wrong.
...
Call getchar() directly, and handle EOF properly instead of looping
(in some cases) or pretending that EOF is 0 (which it isn't).
2009-05-24 23:20:22 +00:00
dholland
df31a803d8
Remove unnecessary initialization that silenced a compiler warning in 1997.
2009-05-24 23:00:46 +00:00
dholland
3ac047a655
Sprinkle some blank lines for readability.
2009-05-24 22:57:37 +00:00
dholland
61357867d7
Split up lines > 80 chars. Object files unchanged.
2009-05-24 22:55:03 +00:00
dholland
fffd2fba77
Don't use literal ^G's in string constants. Use \a.
2009-05-24 21:55:24 +00:00
dholland
50b862e21c
KNF: brace and comment placement. Object files identical.
2009-05-24 21:44:56 +00:00
dholland
d8016deb30
whitespace
2009-05-24 20:43:09 +00:00
dholland
ad04eda0f2
KNF: fix formatting of preprocessor directives
2009-05-24 20:39:43 +00:00
dholland
bf0917b6ae
ANSIfy function declarations. No object file diffs except for two functions
...
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
2009-05-24 19:18:44 +00:00
dholland
783505aca4
KNF. No change to .o file.
2009-05-24 18:22:27 +00:00
christos
6fb300657f
Avoid hardcoded "too large" constant that caused FPE on the vax.
...
XXX: Should pullup to 5.0
2009-03-31 18:48:16 +00:00
christos
e62c26811d
PR/39923: Valery Ushakov: trek(6) can spin, consuming 100% CPU on powerpc
...
On systems where char is unsigned the number of black holes can end up being
very large (instead of negative).
2008-11-14 21:10:44 +00:00
lukem
2fe2731d3f
Remove the \n and tabs from the __COPYRIGHT() strings.
2008-07-20 00:52:39 +00:00
dholland
d4f48e67da
Make the default WARNS for games 4. The only game that needs to set WARNS
...
to anything else now is rogue, so clear WARNS from the other makefiles.
2008-01-28 07:03:58 +00:00
dholland
80def703dc
Build with WARNS=4.
2008-01-28 01:15:55 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
christos
e92d4ac1fa
Coverity CID 1197: Don't pass -1 to close.
2006-03-19 01:00:35 +00:00
christos
4140928aa1
Coverity CID 1467: Elide static buffer overflow.
2006-03-19 00:56:12 +00:00
wiz
d9f5a9df01
Use standard AUTHORS section header. From YOMURA Masanori in private mail
...
Sort sections if necessary. Use more/better markup.
2005-09-15 02:09:41 +00:00
jsm
2773e864bb
Avoid arrays of incomplete types (required to build with GCC 4).
...
Reviewed by <hubertf>.
2005-02-15 12:54:50 +00:00
jsm
cb5fd8342e
Remove uses of __P.
2004-01-27 20:30:28 +00:00
wiz
4bbfee09ca
Various typo fixes from Jonathon Gray via jmc@openbsd.
2003-11-17 11:16:10 +00:00
agc
e5aeb4ea46
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22269, verified by myself.
2003-08-07 09:36:50 +00:00
lukem
001c68bd94
Rename a large chunk of the make(1) variables which refer to a
...
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC
For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo
Document all of these in bsd.README.
This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
pooka
b99251db10
Add ${MACROS} to ${ROFF} usage to make output readable
...
from jbernard@mines.edu in misc/19685
2003-01-05 12:34:26 +00:00
itojun
e12c9d54c0
avoid buffer overrun. fix from openbsd.
...
reported by Niels Heinen <niels.heinen@ubizen.com>
2002-10-18 14:12:14 +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
0d22e30cd0
New sentences begin on new lines.
...
Patch from Richard Elz, slightly improved by yours truly.
2002-09-26 16:12:39 +00:00
grant
6742cb1812
sweep of errx/warnx, remove unnecessary trailing \n
2002-07-20 08:36:17 +00:00
wiz
c640510df0
Correct spelling of "delimiter", and remove from ignored-errors lists.
2002-02-26 02:37:28 +00:00
wiz
a9356936b4
seperate -> separate
2001-07-22 13:33:58 +00:00
wiz
0a600be867
receive, not recieve
2001-06-12 15:17:10 +00:00
simonb
6f6fe2f3ad
Spell occurred correctly.
2001-04-25 02:33:08 +00:00
wiz
834bb1b3ab
Whitespace and/or punctuation fixes.
2001-04-02 22:42:37 +00:00
christos
b67c82fdfe
fix redundant decls and nested externs
2001-02-05 01:12:46 +00:00
itojun
d303927592
printf() pedant - do not pass variable alone, use %s.
...
idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
2000-07-10 10:19:25 +00:00
matt
3233065035
More include additions for exit, abs, strcmp, etc.
2000-07-03 03:57:39 +00:00
mycroft
f9eca6973d
Use setgid(), not setregid().
2000-05-08 07:55:59 +00:00