Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make this pass WARNS=4: | 2008-09-26 | 1 | -41/+37 | |
| | | | | * u_int32_t -> uint32_t, and remove ifdef test. * add function prototypes. | ||||
* | Both legs of the conditional operator must return the same type. | 2008-08-29 | 1 | -2/+2 | |
| | |||||
* | Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a ↵ | 2008-08-29 | 3 | -5/+10 | |
| | | | | few flags for PCC. | ||||
* | if initscr() fails, exit with a message rather than crash in the | 2008-08-08 | 15 | -44/+70 | |
| | | | next curses call | ||||
* | Remove the \n and tabs from the __COPYRIGHT() strings. | 2008-07-21 | 1 | -4/+4 | |
| | |||||
* | Remove the \n and tabs from the __COPYRIGHT() strings. | 2008-07-20 | 44 | -175/+175 | |
| | |||||
* | Clarify how one is supposed to use the pointers returned by getutentries() | 2008-07-13 | 1 | -7/+2 | |
| | | | | | | | | | | | | | (the utmpentry.c code), specifically with respect to who owns them and when to free them. Now they're owned by utmpentry.c, only. Abolish the freeutentries() function, which was the wrong abstraction; add instead endutentries(), which flushes out the internally managed memory. Update callers as necessary. Some (e.g. talkd) had been leaking memory; others (e.g. syslogd) had been accidentally freeing and reloading utmp more often than necessary. There are a couple untidy bits in users and rwhod that someone should look after sometime, maybe. Fixes PR bin/35131, which was about talkd's memory leak. | ||||
* | Add test for HAVE_PCC with HAVE_GCC which turn off compiler warning flags. | 2008-07-12 | 2 | -6/+6 | |
| | |||||
* | remove clause #3 from my license where there are no other | 2008-05-29 | 1 | -3/+1 | |
| | | | copyright holders involved. | ||||
* | 2-clause my license. | 2008-05-08 | 1 | -3/+1 | |
| | |||||
* | Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is | 2008-05-03 | 1 | -2/+2 | |
| | | | | a variable that is used by in-tree Makefiles to control behaviour. (MKsomevar variables are generally intended to be controlled by the end-user) | ||||
* | Remove clause 3 and 4 from TNF licenses | 2008-04-28 | 25 | -210/+35 | |
| | |||||
* | Fix a tip: use pkg_info, not pkg_add to find out which executables | 2008-03-25 | 1 | -3/+3 | |
| | | | belong to a package. | ||||
* | Add a tip explaining how to run the tests in /usr/tests. | 2008-03-23 | 1 | -0/+8 | |
| | |||||
* | In example, change dd count size and also chmod so others can't read swap. | 2008-03-22 | 1 | -1/+2 | |
| | |||||
* | Add five more tips. | 2008-03-21 | 1 | -0/+19 | |
| | |||||
* | Add "netbsd-tips" fortune database with 23 initial fortunes -- | 2008-03-21 | 2 | -4/+120 | |
| | | | | | | actually hints or suggestions or tips on using NetBSD. Please share your brief NetBSD usage tips. If you want to discuss or share suggestions, have a look at http://wiki.netbsd.se/netbsd-tips wiki page. | ||||
* | Don't crash if we're asked to restore from /dev/null. (woops) | 2008-02-24 | 1 | -2/+13 | |
| | |||||
* | Fix a bit more lint. | 2008-02-24 | 3 | -12/+11 | |
| | |||||
* | Fix some more lint. (There's plenty to go around.) | 2008-02-24 | 2 | -20/+22 | |
| | | | | | If we try to load a game and it bombs, keep prompting for another one, because if we try to continue with a half-loaded game we'll probably end up in trouble. | ||||
* | Don't cast the return value of calloc. | 2008-02-24 | 1 | -3/+3 | |
| | |||||
* | fix some lint | 2008-02-24 | 5 | -23/+18 | |
| | |||||
* | need errno.h | 2008-02-24 | 1 | -2/+3 | |
| | |||||
* | Update for today's changes: 1-player games are not allowed, and cards.pck | 2008-02-24 | 1 | -8/+3 | |
| | | | no longer appears. | ||||
* | Fix the OpenBSD housing shortage code. | 2008-02-24 | 1 | -43/+63 | |
| | |||||
* | ret_card(), which I moved earlier, was consequently filed under the wrong | 2008-02-24 | 1 | -2/+4 | |
| | | | source file name. fix. | ||||
* | We do not need special code for pdp11. Also, because random() returns all | 2008-02-24 | 1 | -26/+4 | |
| | | | good bits (unlike rand()) we can simplify this. | ||||
* | Typo patrol | 2008-02-24 | 1 | -4/+5 | |
| | |||||
* | This file is also no longer used. | 2008-02-24 | 1 | -122/+0 | |
| | |||||
* | Abolish the initdeck program and the weird little binary file it generates. | 2008-02-24 | 6 | -391/+186 | |
| | | | | | | | | The card deck data is now compiled in. (And it always should have been, even back when memory usage counted. It's small.) This changes the save format slightly. (I am riding the previous breakage an hour ago and not providing compat. There should be no further breakage.) | ||||
* | Source files should be named *.c or *.h, not random other things. | 2008-02-24 | 21 | -402/+241 | |
| | | | | | | | | Fold monop.ext (which was extern data decls) into monop.h and deck.h. Fold monop.def (which had definitions for the extern data) into monop.c. Fold brd.dat/mon.dat/prop.dat (which were array initializers for some of the data) into monop.c. Rearrange includes accordingly. No functional change. | ||||
* | Remove last traces of old save/load code. We no longer need a private | 2008-02-24 | 4 | -505/+5 | |
| | | | copy of malloc. | ||||
* | Sort out the memory leak fix properly. | 2008-02-24 | 1 | -5/+3 | |
| | |||||
* | New save/load code. Related to (but not the same as) the new save/load | 2008-02-24 | 1 | -33/+501 | |
| | | | | | | | | | | code in OpenBSD. Note: this breaks compatibility with old save files. However, the old save files were missing critical information, had a completely insane format, and didn't work anyway. I will be riding this breakage with another breakage within a day or two when I fix the insanity in the card deck handling. | ||||
* | Fixes from OpenBSD. | 2008-02-23 | 1 | -4/+10 | |
| | | | | | | | | | | - If a player goes bankrupt buying a property (which shouldn't be allowed, but I guess it is), don't cause them to resign to themselves. - Use "NULL", not "0", for pointers. - Avoid undefined behavior adjusting the current player after resigning. - Don't leak the memory used to store player names. The last of these is disabled for the moment because we have the pointers in question tagged const. Will see to this when I'm finished merging. | ||||
* | Fix from OpenBSD: don't say "1 houses". | 2008-02-23 | 1 | -4/+5 | |
| | |||||
* | Bug fixes from OpenBSD: | 2008-02-23 | 1 | -3/+7 | |
| | | | | - don't truncate unreasonably long player names when bidding; - don't allow players to bid more cash than they have. | ||||
* | Bug fix: having $0 does not mean you need to mortgage something. Plus some | 2008-02-23 | 1 | -18/+8 | |
| | | | | tidyup. From OpenBSD. | ||||
* | More fixes from OpenBSD: | 2008-02-23 | 1 | -20/+21 | |
| | | | | | | - initialize in the proper order - don't allow 1-player games - make the check for players named "done" work properly - a couple other minor things | ||||
* | Sanity fixes for input handling. Suggested by OpenBSD, but different code. | 2008-02-23 | 1 | -19/+17 | |
| | |||||
* | A first stab at supporting the housing shortage rules. From OpenBSD. | 2008-02-23 | 2 | -10/+94 | |
| | | | (note: this is not fully correct - I will fix it when I finish merging) | ||||
* | Don't increment booleans. From OpenBSD | 2008-02-23 | 1 | -6/+6 | |
| | |||||
* | Sanity fixes for input buffer handling. From OpenBSD | 2008-02-23 | 1 | -11/+7 | |
| | |||||
* | Improve the behavior of get-out-of-jail-free cards by returning them to | 2008-02-23 | 1 | -5/+38 | |
| | | | | the bottom of the deck when used. There are still a few other problems. From OpenBSD. | ||||
* | Rename ->last_card to ->top_card to match OpenBSD (and also to make | 2008-02-23 | 2 | -7/+7 | |
| | | | somewhat more sense...) | ||||
* | Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD. | 2008-02-23 | 2 | -19/+19 | |
| | |||||
* | A few more whitespace/KNF. I keep hoping I've found them all... | 2008-02-20 | 4 | -17/+14 | |
| | |||||
* | Add the sizes to the extern array declarations. This may not be | 2008-02-20 | 1 | -6/+6 | |
| | | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD. | ||||
* | Use random() rather than rand(). Suggested by diffing against OpenBSD. | 2008-02-20 | 2 | -6/+7 | |
| | |||||
* | Remove unused swap() macro. | 2008-02-20 | 1 | -6/+1 | |
| |