summaryrefslogtreecommitdiff
path: root/games/battlestar
AgeCommit message (Collapse)Author
2016-01-01don't declar main. from Michal MazurekTed Unangst
2015-12-31Include only needed header files per each source filemestre
OK tb@
2015-12-26Set as __dead a few more functions, that don't return, on games/mestre
With precious tip, help and also OK from tb@
2015-12-04cleanup: remove pwd.h, delete a stray comment and a const qualifiertb
2015-11-29tidy here too;Jason McIntyre
2015-11-29Move score file to $HOME and add pledge "stdio rpath wpath cpath".tb
For high score entries, try LOGNAME, then USER, then getlogin() then fall back to ???.
2015-11-25Remove operations that "touch" scorefiles at install time.Theo de Raadt
2015-11-24In 1995, all of the games were setuid games. At end of 1996, I took them allTheo de Raadt
to setgid games, and we started wittling them down. Nearly 10 years later I am removing all setgid from the games. If any of these have score files they are now broken, and I hope various folk repair them. I have argued for years (and received pushback...) that the score file features must be removed, or rewritten to use private files, because setgid is the wrong tool. ok tedu
2015-10-24Cast ctype functions' arguments to unsigned char.mmcc
ok guenther@
2015-08-22remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok ↵Theo de Raadt
millert krw
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-02-17Mark up email addresses semantically with Mt.Anthony J. Bentley
ok schwarze@
2014-11-16Remove a bogotified commentPhilip Guenther
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,Philip Guenther
and <sys/ttydefaults.h> Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX Pull in <limits.h> where needed Prefer sizeof(var) over MAXFOO or FOO_MAX ok deraadt@
2014-10-26Add a format specifier for the printf.Brad Smith
2013-08-29replace srandomdev()+random() with the arc4random*() familyChristian Weisgerber
tweaks and ok millert@, ok deraadt@
2013-07-17add missing .An and .Mt macro; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-04-05this doesn't need to be time_t ok deraadtTed Unangst
2010-09-19put HISTORY in the right place;Jason McIntyre
2009-12-10fix potential bugs spotted by parfaitBob Beck
ok millert@ pjanzen@
2009-11-22Typo fixed.Tobias Stoeckmann
ok jmc, pjanzen
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2007-11-24some spelling fixes from Martynas VenckusJason McIntyre
2007-09-09Move redundant prompt/fgets/sscanf lines into a function withRay Lai
appropriate checks, changing sscanf to strtonum in the process. Initial diff from Charles Longeau. OK moritz and chl.
2007-05-31convert to new .Dd format;Jason McIntyre
2006-10-10fgets(3) returns NULL on error, not 0. No functional change, but it makesChad Loder
the code easier to read. OK deraadt
2005-05-01use setresgid() to drop privs, it is simply a better and less ambiguous API;Damien Miller
ok deraadt@ and millert@ a while ago, more to come
2004-07-10more ansi; khalek@linuxgamers.netTheo de Raadt
2004-02-03ourtime should match prototype in extern.h 'change globals.h' deraad@Dale Rahn
2003-09-26check strdup for error. based on report from Jared Yanovich. ok deraadt@Ted Unangst
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-19NetBSD check to make sure not to deref -1.Paul Janzen
2003-04-23some typos, and clarification of game rules;Jason McIntyre
help, suggestions and ok pjanzen@
2002-12-06Replace things like srandom(time(NULL)) with srandomdev(3). random(3)Todd C. Miller
good enough for games but we should at least use a decent seed. pjanzen@ OK
2002-05-31crmode -> cbreakPaul Janzen
2002-05-31No dm -> games with high score files etc. must explicitly be setgid games.Paul Janzen
2002-05-23The troll strikes.. The troll strikes.. The dungeon master ↵Theo de Raadt
dies.distrib/sets/lists
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-17section consistency: AUTHOR -> AUTHORS, even if only one listed;Paul Janzen
mpech@prosoft.org.lv
2001-08-18FormattingPaul Janzen
2001-06-06reorder sections, minor tidying; mpech@prosoft.org.lvPaul Janzen
2001-02-04Format for long usernamesPaul Janzen
2000-09-26Improve handling of multiple commands on one line. Tidy fight parser.Paul Janzen
Handle "all" in one place (almost). Add AUXVERB category and OBJ_PERSON/ OBJ_NONOBJ flags. Most was discussed with jsm@netbsd.org, and some is from him.
2000-09-26No shell escapePaul Janzen
2000-09-24hyphenatePaul Janzen
2000-09-24numerous changes from jsm@netbsd.org:Paul Janzen
static where appropriate, add a few comments, format a bit better, and deal with WEIGHT/CUMBER being zero (and not less).
2000-09-23drop adjectives in parse(), since they're never used.Paul Janzen
tidy a little. fix love() a bit. From conversations with jsm@netbsd.org: Add objflags[] to deal with plurals and a/an usage. Commas don't mean AND if followed by a verb. Check for object presence before trying to lift or eat it.
2000-09-23die() if stdin disappears, rather than just exiting; jsm@netbsd.org.Paul Janzen
dump the end of the buffer if an input line was too long.
2000-09-23off by one; jsm@netbsd.orgPaul Janzen