adventure(6): sync to NetBSD and OpenBSD; cleanup
authorUlrich Spörlein <uqs@spoerlein.net>
Sun, 17 Jan 2010 12:58:22 +0000 (13:58 +0100)
committerUlrich Spörlein <uqs@spoerlein.net>
Thu, 30 Sep 2010 20:08:26 +0000 (22:08 +0200)
commit5ed4be49b569b844445f81c0e78866386a5de080
tree5b19d7b19eaa20bb3a0a79960b4f107b9c46cbc0
parentcbcf3d85f68796df56597e21c3d827c8241ac6eb
adventure(6): sync to NetBSD and OpenBSD; cleanup

- don't hide: no privileges -> no need to drop them
- sync manpage to OpenBSD
- split function declarations to extern.h
- sprinkle static and const (mostly from NetBSD)
- spell directions more consistently in glorkz (NetBSD)
- fix some off-by-ones (OpenBSD)
- flushline only if necessary
- use err(3) on out-of-memory, use calloc(3)
- improve list handling (via NetBSD from Coverity Prevent)
- return from main() (instead of calling exit)
- fix save file generation (OpenBSD)
- sort includes
15 files changed:
games/adventure/Makefile
games/adventure/adventure.6
games/adventure/crc.c
games/adventure/done.c
games/adventure/extern.h [new file with mode: 0644]
games/adventure/glorkz
games/adventure/hdr.h
games/adventure/init.c
games/adventure/io.c
games/adventure/main.c
games/adventure/save.c
games/adventure/setup.c
games/adventure/subr.c
games/adventure/vocab.c
games/adventure/wizard.c