]>
git.cameronkatri.com Git - bsdgames-darwin.git/log
dholland [Sat, 29 Mar 2014 19:41:10 +0000 (19:41 +0000)]
don't declare own boolean type
dholland [Sat, 29 Mar 2014 19:33:03 +0000 (19:33 +0000)]
use random(), not a handrolled 16-bit generator
dholland [Sat, 29 Mar 2014 19:26:28 +0000 (19:26 +0000)]
Use getaddrinfo() instead of gethostbyname().
dholland [Sat, 29 Mar 2014 19:03:21 +0000 (19:03 +0000)]
typo in error message
dholland [Sat, 29 Mar 2014 19:02:12 +0000 (19:02 +0000)]
const
dholland [Sat, 29 Mar 2014 19:01:00 +0000 (19:01 +0000)]
simplify silly logic
apb [Fri, 28 Mar 2014 17:53:47 +0000 (17:53 +0000)]
temp is a pointer, and tempmax, not sizeof(temp), is the length of
the buffer that it points to. Adjust a strlcat() call to suit.
apb [Fri, 28 Mar 2014 17:49:11 +0000 (17:49 +0000)]
If you are going to use memcpy instead of struct assignment, then at
least use sizeof(the correct variable). The use of memcmp to test
two pointers for equality, one line earlier, is also weird but may be
correct.
dholland [Sun, 23 Mar 2014 00:17:40 +0000 (00:17 +0000)]
Add note cautioning against bothering with WARNS=6 until gcc improves
(or -Wconversion is removed from WARNS=6) as it produces loads of false
positives. The most entertaining of these that I've seen this afternoon:
games/hack/hack.apply.c:143:22: error: conversion to 'unsigned char:1' from 'int' may alter its value [-Werror=conversion]
flags.move = multi = 0;
^
dholland [Sun, 23 Mar 2014 00:07:15 +0000 (00:07 +0000)]
fix signedness issue
dholland [Sun, 23 Mar 2014 00:03:04 +0000 (00:03 +0000)]
gratuitous (but not harmful) changes to pass gcc48's -Wconversion
dholland [Sat, 22 Mar 2014 23:47:03 +0000 (23:47 +0000)]
Use ssize_t for read() results. Don't use int for lseek() results.
Call srandom() with time(), not getpid().
dholland [Sat, 22 Mar 2014 23:45:34 +0000 (23:45 +0000)]
Use ssize_t for read() results. Don't use int for lseek() results.
dholland [Sat, 22 Mar 2014 23:42:48 +0000 (23:42 +0000)]
Use uid_t to hold getuid() results, and don't check getuid for failure
as it isn't allowed to fail.
dholland [Sat, 22 Mar 2014 23:39:04 +0000 (23:39 +0000)]
use size_t instead of int for a length
dholland [Sat, 22 Mar 2014 23:33:33 +0000 (23:33 +0000)]
Use random(), not rand().
dholland [Sat, 22 Mar 2014 23:31:28 +0000 (23:31 +0000)]
avoid unnecessary floating point ops
dholland [Sat, 22 Mar 2014 23:23:55 +0000 (23:23 +0000)]
avoid signed left-shift
dholland [Sat, 22 Mar 2014 23:16:21 +0000 (23:16 +0000)]
Use CHAR_BIT, not 8.
dholland [Sat, 22 Mar 2014 23:10:36 +0000 (23:10 +0000)]
don't declare ospeed; it's in <termcap.h>
dholland [Sat, 22 Mar 2014 22:58:56 +0000 (22:58 +0000)]
Make the list of place types an enumeration. Use unsigned values for
place numbers.
dholland [Sat, 22 Mar 2014 22:47:07 +0000 (22:47 +0000)]
use a more suitable type
dholland [Sat, 22 Mar 2014 22:45:05 +0000 (22:45 +0000)]
use more suitable types
dholland [Sat, 22 Mar 2014 22:33:35 +0000 (22:33 +0000)]
woops, more of previous.
dholland [Sat, 22 Mar 2014 22:24:21 +0000 (22:24 +0000)]
Make some things unsigned that should be (why would we need e.g. a
negative number of airports?) and remove some related bogus casts.
dholland [Sat, 22 Mar 2014 22:09:14 +0000 (22:09 +0000)]
Don't cast the return value of malloc.
dholland [Sat, 22 Mar 2014 22:04:40 +0000 (22:04 +0000)]
Minor tidyup.
dholland [Sat, 22 Mar 2014 20:07:05 +0000 (20:07 +0000)]
tag decl() __noinline, as inlining it would defeat its purpose
(which is to not have interesting string literals appear in the
compiled binary)
dholland [Sat, 22 Mar 2014 19:05:30 +0000 (19:05 +0000)]
Revert part of previous -r1.21 and fix the errno-handling bug instead.
dholland [Sat, 22 Mar 2014 18:58:57 +0000 (18:58 +0000)]
move extern decls to .h files
riastradh [Tue, 18 Mar 2014 18:20:35 +0000 (18:20 +0000)]
Merge riastradh-drm2 to HEAD.
dholland [Sat, 22 Feb 2014 17:21:19 +0000 (17:21 +0000)]
fix typo, from Henning Petersen in PR misc/48613
dholland [Wed, 11 Dec 2013 14:59:47 +0000 (14:59 +0000)]
remove duplicate
dholland [Wed, 11 Dec 2013 14:56:10 +0000 (14:56 +0000)]
another minor fix
wiz [Wed, 11 Dec 2013 11:52:27 +0000 (11:52 +0000)]
Reinstate typo since kre claims it's by purpose.
Discussion in PR 48442.
wiz [Wed, 11 Dec 2013 11:33:49 +0000 (11:33 +0000)]
Error and typo fixes from OpenBSD and FreeBSD via Henning Petersen
in PR 48443.
While here, remove a duplication, fix another typo, and
don't claim that Mr. Sheperd was the first man in space.
wiz [Wed, 11 Dec 2013 11:24:56 +0000 (11:24 +0000)]
Error and typo fixes from OpenBSD and FreeBSD via Henning Petersen
in PR 48442.
dholland [Sat, 7 Dec 2013 02:24:12 +0000 (02:24 +0000)]
WARNS=5
mbalmer [Tue, 12 Nov 2013 17:46:20 +0000 (17:46 +0000)]
hals_end(6) outputs the last words of the supercomputer HAL 9000 aboard
the spaceship in Stanley Kubrick's famous film "2001 - A Space Odissey".
The source code and output of this program were used to illustrate
an article in the book "Total Interaction". How this looks in print can
be at http://www.netbsd.org/~mbalmer/hals_end.jpg.
christos [Sat, 19 Oct 2013 17:19:30 +0000 (17:19 +0000)]
fix unused variable warnings
uwe [Thu, 19 Sep 2013 00:58:11 +0000 (00:58 +0000)]
Untabify the header definition to avoid misaligned comment on
str_delim in PostScript output.
uwe [Thu, 19 Sep 2013 00:53:55 +0000 (00:53 +0000)]
Use .Fa instead of .Ar to refer to header fields.
uwe [Thu, 19 Sep 2013 00:34:00 +0000 (00:34 +0000)]
Now that we use "nbtool_config.h" we can use __dead again and drop
local attempts to define its equivalent.
Also drop the comment that warns this file is a tool; use of
"nbtool_config.h" makes it evident.
uwe [Thu, 19 Sep 2013 00:18:52 +0000 (00:18 +0000)]
Don't define TRUE/FALSE, which may conflict with host headers.
TRUE is unused anyway. Replace all instances of FALSE with 0.
uwe [Wed, 18 Sep 2013 23:18:14 +0000 (23:18 +0000)]
#include "nbtool_config.h" to pull in getprogname() declaration.
joerg [Fri, 13 Sep 2013 20:46:50 +0000 (20:46 +0000)]
GC descr and helpm.
dholland [Sun, 1 Sep 2013 18:37:06 +0000 (18:37 +0000)]
hook cgram to the build
dholland [Sun, 11 Aug 2013 03:44:27 +0000 (03:44 +0000)]
WARNS=5
dholland [Sun, 11 Aug 2013 03:34:48 +0000 (03:34 +0000)]
typo in comment
dholland [Sun, 11 Aug 2013 03:27:02 +0000 (03:27 +0000)]
this already passes WARNS=5
wiz [Sun, 4 Aug 2013 07:55:09 +0000 (07:55 +0000)]
Add RCS Id.
dholland [Sun, 4 Aug 2013 05:42:47 +0000 (05:42 +0000)]
Add a curses gizmo for solving Sunday-paper-type cryptograms based on
substitution ciphers. It gets the cleartext from fortune. I wrote this
some years ago for my own amusement; a couple people have suggested
that I should import it.
Approved only by groo, so I'm going to wait a couple days to hook it
to the build in case anyone demands it be removed again...
wiz [Wed, 24 Jul 2013 06:57:09 +0000 (06:57 +0000)]
Fix typo.
jnemeth [Wed, 24 Jul 2013 04:41:49 +0000 (04:41 +0000)]
add an Oscar Wilde quote
wiz [Sat, 20 Jul 2013 21:39:55 +0000 (21:39 +0000)]
Use Mt for email addresses.
njoly [Tue, 9 Jul 2013 09:41:30 +0000 (09:41 +0000)]
Fix sendmail section (8 -> 1) in xrefs.
dholland [Sun, 12 May 2013 03:29:07 +0000 (03:29 +0000)]
Don't expect fairings.
pgoyette [Sun, 17 Feb 2013 13:39:51 +0000 (13:39 +0000)]
Fix same typo in the other file in which it occurs
pgoyette [Sun, 17 Feb 2013 13:36:01 +0000 (13:36 +0000)]
Fix minor typo
jmcneill [Sun, 17 Feb 2013 12:17:40 +0000 (12:17 +0000)]
rename target paper.${PRINTER} to paper.ps -- PRINTER isnt defined anywhere!
jmcneill [Sat, 16 Feb 2013 17:00:21 +0000 (17:00 +0000)]
Workaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make UAC happy when building with Cygwin. As described here -- http://msdn.microsoft.com/en-us/library/windows/desktop/
bb756960 .aspx -- 32-bit executables whose filenames include the strings 'install', 'setup', 'update', 'patch', etc. by default will request admin privileges unless an application manifest is provided.
jmcneill [Sat, 16 Feb 2013 16:30:28 +0000 (16:30 +0000)]
Workaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make UAC happy when building with Cygwin. As described here -- http://msdn.microsoft.com/en-us/library/windows/desktop/
bb756960 .aspx -- 32-bit executables whose filenames include the strings 'install', 'setup', 'update', 'patch', etc. by default will request admin privileges unless an application manifest is provided.
jnemeth [Sat, 8 Dec 2012 22:38:09 +0000 (22:38 +0000)]
Add some quotes by Henry Ford, found at:
http://www.goodreads.com/author/quotes/203714.Henry_Ford
mbalmer [Sat, 1 Dec 2012 11:37:26 +0000 (11:37 +0000)]
Fix misspelling of acceptible (it's only acceptable with an 'a', not an 'i').
mbalmer [Thu, 22 Nov 2012 11:32:19 +0000 (11:32 +0000)]
Fix two quotes from "The Tao of Programming". From FreeBSD.
abs [Tue, 20 Nov 2012 12:40:54 +0000 (12:40 +0000)]
PR/47178 from Bug Hunting
src/games/wtf/wtf:
- Correct `usage' (to match new `SYNOPSIS' from man page);
- augment comment on quering pkgsrc's help facility;
- correct interpretation of pkgsrc' help facility query result.
src/games/wtf/wtf.6:
- enhance `SYNOPSIS', document description (`.Dd'), and overal
program description;
- augment description about quering pkgsrc's help facility;
- improve wording;
- augment `HISTORY' section;
- bump date.
jakllsch [Mon, 22 Oct 2012 14:33:27 +0000 (14:33 +0000)]
Attribute "The STAR WARS Song" to "Weird Al" Yankovic under the proper title,
"Yoda". Correct said lyrics.
Correct lyrics to "Weird Al" Yankovic's "One Of Those Days".
dholland [Sat, 13 Oct 2012 21:03:09 +0000 (21:03 +0000)]
Pass -Wstrict-overflow
dholland [Sat, 13 Oct 2012 21:01:13 +0000 (21:01 +0000)]
Pass -Wstrict-overflow; while here, use curses TRUE and FALSE only with
curses.
dholland [Sat, 13 Oct 2012 20:57:35 +0000 (20:57 +0000)]
Pass -Wstrict-overflow... mostly.
dholland [Sat, 13 Oct 2012 20:42:56 +0000 (20:42 +0000)]
Pass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 20:36:06 +0000 (20:36 +0000)]
Pass -Wstrict-overflow, and while here, don't read from index -1 of
an array.
dholland [Sat, 13 Oct 2012 20:12:18 +0000 (20:12 +0000)]
Factor out some common code; pass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 19:58:53 +0000 (19:58 +0000)]
Pass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 19:44:36 +0000 (19:44 +0000)]
Move scratch variables of main to main, instead of having them be
file-static.
dholland [Sat, 13 Oct 2012 19:39:57 +0000 (19:39 +0000)]
Add strategic assertion, now passes -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 19:25:22 +0000 (19:25 +0000)]
Remove ifdefs for V7 (as opposed to older) unix.
dholland [Sat, 13 Oct 2012 19:19:38 +0000 (19:19 +0000)]
Pass the move info around instead of using it as a global.
dholland [Sat, 13 Oct 2012 18:44:14 +0000 (18:44 +0000)]
Crack down on global variables with single-letter names.
dholland [Fri, 12 Oct 2012 15:41:10 +0000 (15:41 +0000)]
fix previous, thanks asau@
dholland [Fri, 12 Oct 2012 10:44:20 +0000 (10:44 +0000)]
Don't use ++ to set flags to true. Now passes -Wstrict-overflow.
dholland [Fri, 12 Oct 2012 10:38:53 +0000 (10:38 +0000)]
Pass -Wstrict-overflow.
christos [Sat, 6 Oct 2012 19:39:51 +0000 (19:39 +0000)]
if 0 is used for the dimensions, compute the maximum size.
wiz [Wed, 3 Oct 2012 19:50:43 +0000 (19:50 +0000)]
Bump date for previous.
wiz [Wed, 3 Oct 2012 19:50:11 +0000 (19:50 +0000)]
- improve wording and overall program description (notably for `-f');
- improve macro usage;
- bump date.
From Bug Hunting.
wiz [Wed, 3 Oct 2012 19:50:06 +0000 (19:50 +0000)]
- correct `usage' message;
- improve wording.
From Bug Hunting.
riastradh [Wed, 3 Oct 2012 19:41:46 +0000 (19:41 +0000)]
Add a remarkably percipient fortune cookie.
riastradh [Wed, 3 Oct 2012 19:04:55 +0000 (19:04 +0000)]
Fix formatting of Churchill quote on declarations of war.
wiz [Sun, 12 Aug 2012 17:30:03 +0000 (17:30 +0000)]
- improve wording
- sort option list
- add argument names in option list and descriptions and adjust table width
- improve punctuation
- bump date
From Bug Hunting.
jdf [Sat, 4 Aug 2012 22:29:58 +0000 (22:29 +0000)]
src/games/fortune/fortune/fortune.6:
* reference strfile(8) in `SEE ALSO' section.
src/games/fortune/strfile/strfile.8:
* remove redundant argument to (successive) `.Nm' macros.
src/games/fortune/datfiles/fortunes2:
* remove (the least complete variant of a) double fortune.
Patch submitted by Bug Hunting.
dholland [Tue, 19 Jun 2012 05:46:08 +0000 (05:46 +0000)]
WARNS=5, and make WARNS=5 the default for src/games.
dholland [Tue, 19 Jun 2012 05:45:00 +0000 (05:45 +0000)]
WARNS=5
dholland [Tue, 19 Jun 2012 05:30:43 +0000 (05:30 +0000)]
WARNS=5
dholland [Tue, 19 Jun 2012 04:59:19 +0000 (04:59 +0000)]
Typo. Reported by I-forget-who-but-they'd-probably-rather-not-be-credited,
during the -6 freeze, and then forgotten until now.
joerg [Fri, 15 Jun 2012 10:51:25 +0000 (10:51 +0000)]
Remove unused fields
njoly [Sat, 9 Jun 2012 23:15:13 +0000 (23:15 +0000)]
Consistently use major/minor for NetBSD version.
martin [Sat, 9 Jun 2012 09:22:21 +0000 (09:22 +0000)]
Add missing terminfo
christos [Wed, 6 Jun 2012 00:34:32 +0000 (00:34 +0000)]
rcsid, warns
wiz [Wed, 6 Jun 2012 00:28:02 +0000 (00:28 +0000)]
Sort sections; remove trailing whitespace.
christos [Wed, 6 Jun 2012 00:16:01 +0000 (00:16 +0000)]
add colorbars