Commit Graph

586 Commits

Author SHA1 Message Date
ed
e7e5b53bf1 Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.

This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.
2012-01-03 18:51:58 +00:00
dougb
96d2ec96a9 1. Correct capitalization of the nobility particle for
Francois de La Rochefoucauld introduced in r228909 [1],[2]

2. Change c-cedilla introduced in the same commit to ASCII c since
   non-UTF-8 terminals will choke on the non-ASCII text. [2],[3]

Pointed out by:	bf [1]
Reviewed by:	French-speakers on #bsdcode [2]
Requested by:	uqs [3]
2011-12-28 22:18:53 +00:00
uqs
68c3cd3b7e Prefer ASCII apostrophes over Unicode ones like the rest of the file. 2011-12-28 19:37:03 +00:00
dougb
f982f04def 1. Remove a bunch of duplicates. Usually this means removing them from
fortunes, but occasionally remove them from the other 2 files when
   they are not offensive, or not murphy'ish enough.

   Where the version in fortunes had better attribution and/or formatting,
   copy it over.

2. Fix a few typos

3. Use the full name of François De La Rochefoucauld, fix one of his
   quotes, and remove the duplicate of it.
2011-12-27 10:21:57 +00:00
ed
af1e42f366 Add static keywords to variables and functions where possible in games/.
This allows us to detect unused functions and variables and allows the
compiler to do a better job at optimisation.
2011-11-05 07:18:53 +00:00
dougb
903461fc0b Fix the text and attribution of the poem "Youth" by Samuel Ullman.
Our copy was a bastardization of the "older" (probably original?) and
shorter version of the poem; and the "newer" version that is better
known, and arguably more popular. Standardize on the latter.

Cf. http://www.bartleby.com/73/2099.html
2011-10-29 06:33:12 +00:00
dougb
19ee445add Minor typo, fix 2 attributions 2011-06-09 06:10:39 +00:00
uqs
387ef87903 Convert a file to UTF-8. This only changes a character in the
copyright section and will not require UTF-8 for fortune(6).
2011-05-14 19:03:54 +00:00
uqs
a60c79bc44 fortune(6): fix typos and misspellings.
While here, drop words in the spelling files that are no longer used
anywhere.

Speling errors found via:	codespell from Lucas De Marchi
2011-05-14 19:03:45 +00:00
brucec
15edba98d5 Move potentially offensive fortune to fortunes-o.
PR:	bin/137702
MFC after:	3 days
2011-02-13 18:18:56 +00:00
cperciva
5cb9bcbf09 Add advice to new fathers from Thomas Ptacek.
Suggested by:	wilko
Approved by:	Thomas Ptacek
Security:	New parents often feel very insecure.
2010-09-29 23:47:06 +00:00
jmg
dea7e7503e fix the move so that it matches what the rest of the internet
says about this game...  This move also makes more sense...

MFC after:	1 week
2010-09-03 03:20:34 +00:00
fjoe
855b4d34ca "whereis netscape" gives empty output for quite a long time already.
Suggest to use "whereis firefox" instead.
2010-08-09 09:26:17 +00:00
uqs
d5b10f78d9 Fix indention of attribution line for some recent additions.
MFC after:	3 days
2010-07-30 20:20:14 +00:00
dougb
0e1b75189b Correct a Cecil Beaton quote
PR:		docs/148916
Submitted by:	Rob Farmer <rfarmer@predatorlabs.net>
2010-07-25 21:35:56 +00:00
dougb
96f7f6794f Taken from actual police videos ... 2010-06-26 07:02:31 +00:00
uqs
b9a504725e Sync fortunes with other *BSDs
- Spelling errors
- Typographical fixes
- Consistent attributions
- Use Jr. more consistently
- Capitalization of dictionary-like entries
- Sorting using tools/do_sort
- Remove duplicate fortunes
- Style according to the Notes file
- Reflect correct default fortune name in Notes
- Remove some no longer needed spelling hints
- Drop latin1 characters (sorry Mårten)

This is a partial sync against the DragonflyBSD sources, where a lot of
fixes from Free, Net and OpenBSD were merged previously. Only about 50%
of the changes originate from there, the rest was done by dougb and
yours truly.

Partial review by:	wilko (earlier version), ed (dito)
In collaboration with:	dougb
Approved by:		ed (co-mentor)
2010-03-31 18:21:25 +00:00
wilko
2c2b4cb0e3 s/all ready/already/
Submitted by:	ru@, gj@
2010-02-26 16:27:11 +00:00
wilko
709c06294d On the (non)sense of legal disclaimers in emails. 2010-02-25 15:03:57 +00:00
uqs
74cf8088e7 Prefer exit(0) from main over return(0).
Although not explicitly mentioned in style(9), it allows for easier
grepping of exit points. This reverts part of r203926.

Requested by:	des
Approved by:	philip (mentor)
2010-02-21 21:03:15 +00:00
uqs
6dbf26d197 fortune(6) switch to 3-clause BSDL; style(9)
This reduces the diff to other *BSD and makes it possible to actually
see the code differences.

Approved by:	ed (Co-mentor)
2010-02-15 15:10:21 +00:00
uqs
23cb4f332d games: make WARNS=6 the default, remove overrides
This also bumps factor, fortune, primes, and random to WARNS=6.

Approved by:	ed (Co-mentor)
2010-02-15 14:32:00 +00:00
uqs
9dc5fb429a fortune(6) make WARNS=6 clean
Fixes taken mostly from DragonflyBSD.

Approved by:	ed (Co-mentor)
2010-02-15 14:31:30 +00:00
gnn
a98b1b2040 Add the definition of Mistakeholder 2010-02-09 14:51:39 +00:00
gavin
191eb488de Our standard "xterm" termcap entry supports colour, so this tip is redundant.
As it happens, "xterm-color" has just been an alias for "xterm" since
src/share/termcap/termcap.src 1.131 in September 2002.

PR:		docs/132959
Approved by:	ed (mentor)
2010-01-11 21:17:49 +00:00
dougb
2be9e943a9 For the now-infamous Rumsfeld quote:
Change "there're" to "there are" which is consistent with the vast
majority of on line references.

Remove a spurious trailing "

Update the citation text with a suggestion from des.
2010-01-07 23:30:10 +00:00
stas
a3ff55adf7 - Move potentially offensive quotes I committed recently to fortunes-o.
- Reference date.
- Be more clear on context.

Suggested by:	dougb
2010-01-05 23:35:43 +00:00
dougb
633e4d704e Remove more duplicates
Minor reformatting on a few
2010-01-05 19:40:32 +00:00
stas
05cd6c9186 - Add two particulary interesting quotes from the past decade. 2010-01-04 09:16:35 +00:00
ed
b90af5ae21 Use ANSI C function declarations. 2009-12-29 08:42:58 +00:00
dougb
fd872f39d3 Properly sort a math fortune after the changes in r193486
Properly sort fortunes added in r174879 and r174959
2009-11-07 22:13:29 +00:00
dougb
66c17d4f6c Move Warner's very funny comparison of VCS to anal sex into fortunes-o 2009-11-07 21:28:21 +00:00
dougb
b115416644 Remove the svn:executable property from this file 2009-11-07 21:02:40 +00:00
dougb
838964588b Fix not only the grammar, but also the formatting that makes the gag 2009-11-04 18:40:05 +00:00
dougb
3ebab44f62 "Potluck Pogo" was a collection of Walt Kelly's "Pogo" cartoons
first published in 1955. "Putluck Pogo" seems to be a typo.
2009-10-06 02:13:32 +00:00
dougb
bfbc302bca Fix several instances of spaces before commas, and one of a space
before a ).

PR:		docs/136723
Submitted by:	Ulrich Sporlein <uqs@spoerlein.net>
Approved by:	re (kib)
2009-07-16 20:29:36 +00:00
edwin
c284a3411a Misc fixed to fortunes
PR:		conf/112024
Submitted by:	Niclas Zeising <niclas.zeising@gmail.com>
MFC after:	2 days
2009-06-05 07:57:10 +00:00
edwin
918be43d84 [patch] fortune(6): George Bernard Shaw quote fix
From the original PR:

    s/milestones/millstones/
    and less important..
    s/man/Man/
    Not every source I've seen capitalizes 'Man', but it seems
    right. Uncapitalized 'man' would usually be preceded by
    an 'a'. But I haven't seen any reference cite the orignal
    source yet, so I can't say for sure.

http://quotationsbook.com/quote/31568/

PR:		conf/131469
Submitted by:	John Hein <jhein@timing.com>
MFC after:	2 days
2009-06-04 22:01:50 +00:00
edwin
9fb430ebd0 [patch] fortune(6): file not Y2.01K compliant
Update the time in the fortune to make the joke a little bit more
realistic again: Bump year from 2009 to 2039.

PR:		conf/129860
Submitted by:	Alan Amesbury <amesbury@umn.edu>
MFC after:	2 days
2009-06-04 21:55:07 +00:00
phk
18d3f8ff52 Too good to pass. 2009-03-06 13:24:54 +00:00
simon
8ccecdd30b netcat is "now" in base, so point people at nc(1) instead of the port.
MFC after:	1 week
2009-01-12 19:17:43 +00:00
phk
8bdcb17f53 Another good day for historical quotes, Oliver Wendell Holmes brought to
you by Thomas L. Friedman.

 (http://www.nytimes.com/2008/10/08/opinion/08friedman.html?ref=opinion)
2008-10-08 19:39:22 +00:00
phk
c4a12279db A Wittgenstein quote according to David Ignatius
http://voices.washingtonpost.com/postpartisan/2008/10/the_town_hall_debate_in_praise.html
2008-10-08 06:39:05 +00:00
ache
47725620b7 Use __FreeBSD_version check since it is bootstrap tool 2008-08-07 21:36:09 +00:00
ache
33d0c4b593 Add reference to arc4random_uniform(3) 2008-08-07 20:07:30 +00:00
ache
e1d97badbc Use arc4random_uniform(3) 2008-08-07 20:05:51 +00:00
ache
61c55e8d27 Use arc4random_uniform(3)
Obtained from:  OpenBSD
2008-08-07 20:02:42 +00:00
phk
62173de879 Add a quote too good to miss from:
http://www.schneier.com/blog/archives/2008/08/schneier_misquo.html

(and reorder one I appearantly didn't get in the right place last time.)
2008-08-02 20:11:56 +00:00
maxim
3348213ee8 o Alan Shepard was first American in the space; fix attribution.
o Correct Alan's surname.

PR:		bin/125812
Submitted by:	Derek Taylor [1], gavin [2]
MFC after:	1 week
2008-07-22 14:21:56 +00:00
phk
35ea526131 Unmangle an E.W.Dijkstra quote. 2008-07-14 18:45:06 +00:00