summaryrefslogtreecommitdiffstats
path: root/games/primes/primes.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the third clause for the Berkeley parts of games, per theimp2010-02-151-5/+1
| | | | letter in /COPYRIGHT.
* Last commit was slightly hasty: #include <string.h> is required onfanf2002-10-091-0/+1
| | | | -CURRENT to be WARNS-safe (but not -STABLE for some reason)
* Kill obsolete #include <memory.h> which I didn't spot earlier becausefanf2002-10-091-1/+0
| | | | it's still in the NetBSD version.
* Style fixes to: #include ordering; use const and static; ANSI functions;fanf2002-10-091-29/+13
| | | | | | | | | various usage synopses; bogus and/or unnecessary casting; exit values; use LINE_MAX instead of magic numbers; declare extern variables in a header; add $FreeBSD$ where missing. Reviewed by: markm, obrien Obtained from: NetBSD | fanf
* staticize functions and variablesbillf2002-02-211-18/+14
| | | | | | change function declarations to ANSI change a variable that stores sizeof() values to size_t use return to escape the end of main(), not exit(3)
* Remove __Pimp2002-02-181-3/+3
| | | | | | Remove __STDC__ (which means we now use stdarg rather than vararg) Remove register Remove main prototype
* Fix a typo. While 'iff' might make sense in a mathematics-related text,roam2001-12-271-1/+1
| | | | | | | 'if and only iff' does not. PR: 33242 Submitted by: Eric Yu <ericyu@mail2000.com.tw>
* copyright/sccsid/rcsid cleanup.billf1999-11-301-3/+5
|
* Sync our register usage with NetBSD's (non-)usage.billf1999-11-161-5/+5
|
* Add $FreeBSD$billf1999-11-161-0/+2
|
* Fix printf errors in the hflag case.imp1999-01-061-2/+2
| | | | | | | Fix old bug with bogus casing to (long). Document the true limits of factor on 64-bit architectures. Submitted by: bde
* added -h flag to allow for hexidecimal output.imp1999-01-061-8/+13
| | | | | | | | | | Use '0' for base rather than 10 to allow for more flexible input bases. Inspired by changes in PR 7402, but mostly redone by me to get past bde filter. Submitted by: Timo J. Rinne PR: 7402
* Revert the last commit, it made the Bruce filter flip:phk1998-08-091-18/+13
| | | | | | | | | | | | | | | | PR7402 was even less suitable for committing almost verbatim than at first appearance. Rev.1.9 of primes.c has at least the following defects. - no update for man page. - no update for usage string. - blowing away of a previous commit to change EOF to -1 in getopt() test. - blowing away of a previous commit to fix printf format errors. - new printf format errors. - one gratuitous ANSIism. - two style bugs. - ... and a partition in a pear tree. PR: 7402
* Games primes and factor don't understand hexadecimals.phk1998-08-071-13/+18
| | | | | | | | This would make these `games' somewhat useful tools. PR: 7402 Reviewed by: phk Submitted by: Timo J. Rinne <tri@iki.fi>
* Fixed printf format errors.bde1998-06-301-2/+2
|
* Cast pointers to longs, not ints.jb1998-05-091-3/+3
| | | | | Hopefully that's the last of the 64-bit cleaning of src/games. That is, without adding -Wall to the compiler flags. That's not a pretty sight.
* Wargh! Who went and changed all the getopt() comparisons from -1 tojkh1998-03-011-1/+1
| | | | | | | EOF? The getopt(3) manpage clearly states that the return value is *-1*, not EOF! Besides, getopt(3) isn't reading from a file. :) Noticed-while: merging to 2.2 (where this is correct).
* Remove so-called revoke, this game never installed sguidache1997-09-011-4/+0
|
* Change games from setuid games to setgid games.eivind1997-09-011-0/+4
| | | | | Reviewed by: maybe@yes.no Obtained from: OpenBSD (mostly deraadt@openbsd.org)
* Merge from Lite2 (oops, nearly forgot these ones)peter1997-03-111-1/+2
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Bring in the 4.4 Lite games directory, modulo man page changes and segregationjkh1994-09-041-0/+332
of the x11 based games. I'm not going to tag the originals with bsd_44_lite and do this in two stages since it's just not worth it for this collection, and I've got directory renames to deal with that way. Bleah. Submitted by: jkh
OpenPOWER on IntegriCloud