andvar
f465408163
s/totaled/totalled/
2021-12-31 12:42:24 +00:00
rillig
1182a44c59
games: remove trailing whitespace in *.c and *.h
2021-05-02 12:50:43 +00:00
msaitoh
25c7ba7c6d
s/saftey/safety/
2019-12-27 09:17:59 +00:00
mrg
c543d06770
- 'cango' is used beyond a bool type. make it an int.
...
- add a couple of fallthru comments.
2019-02-04 03:29:41 +00:00
mrg
fbffadb9f8
- add or adjust /* FALLTHROUGH */ where appropriate
...
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily
2019-02-03 03:19:25 +00:00
christos
5604b0c3c9
get rid of gets
2016-06-05 18:39:02 +00:00
plunky
9f61b80465
NULL does not need a cast
2011-08-31 16:24:54 +00:00
tron
d504399e17
Avoid non-literal format strings.
2011-08-26 09:01:07 +00:00
dholland
ae56ae8f3f
Use __dead and __printflike instead of __attribute__.
2011-08-26 06:18:16 +00:00
christos
a040843f47
use const char [] for format.
2011-08-21 08:50:08 +00:00
christos
18f6b4214c
eliminate non-literal format strings
2011-08-16 11:14:04 +00:00
joerg
c112023e0a
ANSIfy
2011-05-23 22:59:27 +00:00
christos
3dc82e5062
handle ctime returning NULL.
2010-04-04 00:08:49 +00:00
he
76d4444c78
When using -lcurses, you also need -lterminfo.
...
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
2010-02-06 23:45:24 +00:00
dholland
f2a20f5fe4
sprinkle static
2009-08-12 08:04:05 +00:00
dholland
18d676539b
We don't need a private #define "unsgn" for "unsigned", especially since
...
it was used exactly once.
2009-05-25 23:44:04 +00:00
dholland
85fc4e7c13
Use the time to call srandom(), not getpid().
2009-05-25 23:41:23 +00:00
dholland
3a7e6d0da5
KNF/whitespace: format preprocessor directives correctly.
2009-05-25 23:34:50 +00:00
dholland
905e2f95c6
ANSIfy function declarations. Object file diffs checked.
2009-05-25 23:24:54 +00:00
dholland
ebb769ae0b
sprintf -> snprintf
2009-05-25 23:14:33 +00:00
wiz
6d5f9e9307
Sort sections.
2009-04-12 18:31:47 +00:00
joerg
fdd399fcf8
Convert to mdoc markup. With input from wiz.
2009-04-12 16:57:02 +00:00
drochner
432ec04420
if initscr() fails, exit with a message rather than crash in the
...
next curses call
2008-08-08 16:10:47 +00:00
lukem
2fe2731d3f
Remove the \n and tabs from the __COPYRIGHT() strings.
2008-07-20 00:52:39 +00:00
dholland
712442be18
make mille build with WARNS=4
2008-01-28 05:55:10 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
christos
d7b2adb029
Coverity CID 695: Remove impossible condition. This changes the scoring as
...
it was probably intended originally.
2006-03-19 00:29:27 +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
dsl
49f7d8a9b1
Add (unsigned char) cast to ctype functions
2004-11-05 21:30:31 +00:00
jdc
f015cad4b7
If the current player has no cards, skip to the other player.
...
While we're here, make this compile with -DDEBUG.
Fixes PR bin/12530 from Thomas Klausner.
2004-04-06 19:15:07 +00:00
jsm
cb5fd8342e
Remove uses of __P.
2004-01-27 20:30:28 +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
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
wiz
7fd8f3df3f
__STDC__ is always defined on NetBSD.
2002-05-26 00:12:11 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
blymn
7d6d5f042f
Change deprecated curses function to new equivalent.
2001-12-06 11:59:45 +00:00
wiz
14dbdf5518
Negative exit code cleanup: Replace exit(-x) with exit(x).
...
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
mycroft
f9eca6973d
Use setgid(), not setregid().
2000-05-08 07:55:59 +00:00
thorpej
29eeaf21f2
Cast pointer difference to long when printing w/ %ld.
2000-04-27 17:49:15 +00:00
jdc
54db2fd199
Clear to end of line on the correct window.
2000-04-27 00:33:49 +00:00
jdc
d6d7f0531f
Fix arguments to *printw().
2000-04-27 00:30:51 +00:00
jsm
f09b966ba3
Fix error in last namespace change (only relevant #ifdef DEBUG).
1999-10-01 17:06:01 +00:00
jsm
ce5670f70f
Fix uses of namespaces reserved by ISO C or POSIX.1.
1999-09-30 18:01:31 +00:00
jsm
20e3305006
Fix -Wsign-compare warnings.
1999-09-18 19:38:46 +00:00
jsm
5367f3400c
Security improvements for games (largely from or inspired by OpenBSD).
...
Games which run setgid from dm, but don't need to, should drop their
privileges at startup.
Games which have a scorefile should open it at startup, then drop all
privileges leaving just the open writable file descriptor. If the
game can invoke subprocesses, this should be made close-on-exec.
Games with scorefiles should make sure they do not get a file
descriptor < 3. (Otherwise, they could get confused and corrupt the
scorefile when using stdin, stdout or stderr.)
Some old setuid revokes from the days of setuid games change into gid
revokes.
1999-09-12 09:02:20 +00:00
jsm
2b25de3a90
Include <time.h> in various places in the games where time() or time_t
...
are used.
1999-09-09 17:30:17 +00:00
jsm
5fb18dd9da
Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
...
the games.
1999-09-08 21:57:16 +00:00
jsm
b03d4fa882
Add `__noreturn__' and `__unused__' attributes where appropriate to
...
the games.
This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).
Most noreturn attributes were previously added in bin/6144, with some
others that were missed then in bin/8082. Previous `unused'
attributes were covered in bin/6557, bin/8058 and other PRs (all these
PRs have already been handled and closed).
1999-09-08 21:45:25 +00:00
jsm
092d313019
Add use of `const' where appropriate to the games.
...
This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).
Some such changes were previously covered in PRs bin/6041, bin/6146,
bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994,
bin/8039, bin/8057 and bin/8093.
1999-09-08 21:17:44 +00:00
jsm
44a90d0991
Removed unused array Movenames[].
1999-09-08 20:43:48 +00:00