]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
10 years agosprinkle static
dholland [Sat, 29 Mar 2014 21:33:41 +0000 (21:33 +0000)]
sprinkle static

10 years agoFlush unwanted file.
dholland [Sat, 29 Mar 2014 21:27:40 +0000 (21:27 +0000)]
Flush unwanted file.

10 years agoMove definitions to the file they're used in.
dholland [Sat, 29 Mar 2014 21:27:08 +0000 (21:27 +0000)]
Move definitions to the file they're used in.

10 years agomove a comment that should have gone with its symbol
dholland [Sat, 29 Mar 2014 21:25:35 +0000 (21:25 +0000)]
move a comment that should have gone with its symbol

10 years agoRemove tautological #if DEBUG.
dholland [Sat, 29 Mar 2014 21:24:56 +0000 (21:24 +0000)]
Remove tautological #if DEBUG.

10 years agoSplit hunt and huntd's includes, instead of incestuously sharing a pile
dholland [Sat, 29 Mar 2014 21:24:26 +0000 (21:24 +0000)]
Split hunt and huntd's includes, instead of incestuously sharing a pile
of external data and function declarations between the two programs.

Common constants and defines now go in hunt_common.h. Stuff that belongs
only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd
is in huntd/hunt.h.

Copy some declarations that are used in both programs under the same
names (but are not actually the same objects) from huntd/hunt.h to
hunt/hunt_private.h. Move others that are only used in hunt. Remove
some entirely unused material, and tidy up standard includes.

10 years agoRemove unsafe and unnecessary pointer casts.
dholland [Sat, 29 Mar 2014 20:53:55 +0000 (20:53 +0000)]
Remove unsafe and unnecessary pointer casts.

10 years agocatch up to huntd changes.
dholland [Sat, 29 Mar 2014 20:52:13 +0000 (20:52 +0000)]
catch up to huntd changes.
XXX: this needs to stop promiscuously sharing .h files.

10 years agotsort contents of file
dholland [Sat, 29 Mar 2014 20:44:20 +0000 (20:44 +0000)]
tsort contents of file

10 years agoconst in unused code
dholland [Sat, 29 Mar 2014 20:41:57 +0000 (20:41 +0000)]
const in unused code

10 years agoremove stubbed-out function
dholland [Sat, 29 Mar 2014 20:35:30 +0000 (20:35 +0000)]
remove stubbed-out function

10 years agoRip out the code that broadcasts talk requests to the local
dholland [Sat, 29 Mar 2014 20:32:04 +0000 (20:32 +0000)]
Rip out the code that broadcasts talk requests to the local
hunt-players mailing list.

In this day and age it doesn't even begin to work: even if you were to
have such a mailing list locally, sendmail wouldn't expand it for you,
the addresses you got back wouldn't be talk-requestable addresses,
talk requests don't cross NAT or firewalls safely, talk doesn't
support ipv6, and nobody runs talkd anyway.

It doesn't make sense to try to replace it with some other kind of
notify scheme either; there might still be a multiuser machine
somewhere with enough simultaneous users that broadcasting something
akin to talk requests locally might make sense, and where a nontrivial
number of the users actually play hunt, but probably not, and if so
those users are likely to be better off using wall(1) anyway. Nowadays
games will be set up by looking for people in chat or by emailing or
texting friends.

Theoretically someone could set up an internet hunt metaserver for
finding hunt games, but that would be something entirely different
anyway and I doubt there's demand.

10 years agoRemove empty header file.
dholland [Sat, 29 Mar 2014 20:16:09 +0000 (20:16 +0000)]
Remove empty header file.

10 years agoUse setproctitle() instead of handrolled version.
dholland [Sat, 29 Mar 2014 20:12:12 +0000 (20:12 +0000)]
Use setproctitle() instead of handrolled version.

10 years agoMake the code for issuing talk requests to find players actually build.
dholland [Sat, 29 Mar 2014 20:10:10 +0000 (20:10 +0000)]
Make the code for issuing talk requests to find players actually build.

10 years agodon't declare own boolean type
dholland [Sat, 29 Mar 2014 19:41:10 +0000 (19:41 +0000)]
don't declare own boolean type

10 years agouse random(), not a handrolled 16-bit generator
dholland [Sat, 29 Mar 2014 19:33:03 +0000 (19:33 +0000)]
use random(), not a handrolled 16-bit generator

10 years agoUse getaddrinfo() instead of gethostbyname().
dholland [Sat, 29 Mar 2014 19:26:28 +0000 (19:26 +0000)]
Use getaddrinfo() instead of gethostbyname().

10 years agotypo in error message
dholland [Sat, 29 Mar 2014 19:03:21 +0000 (19:03 +0000)]
typo in error message

10 years agoconst
dholland [Sat, 29 Mar 2014 19:02:12 +0000 (19:02 +0000)]
const

10 years agosimplify silly logic
dholland [Sat, 29 Mar 2014 19:01:00 +0000 (19:01 +0000)]
simplify silly logic

10 years agotemp is a pointer, and tempmax, not sizeof(temp), is the length of
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.

10 years agoIf you are going to use memcpy instead of struct assignment, then at
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.

10 years agoAdd note cautioning against bothering with WARNS=6 until gcc improves
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;
                      ^

10 years agofix signedness issue
dholland [Sun, 23 Mar 2014 00:07:15 +0000 (00:07 +0000)]
fix signedness issue

10 years agogratuitous (but not harmful) changes to pass gcc48's -Wconversion
dholland [Sun, 23 Mar 2014 00:03:04 +0000 (00:03 +0000)]
gratuitous (but not harmful) changes to pass gcc48's -Wconversion

10 years agoUse ssize_t for read() results. Don't use int for lseek() results.
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().

10 years agoUse ssize_t for read() results. Don't use int for lseek() results.
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.

10 years agoUse uid_t to hold getuid() results, and don't check getuid for failure
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.

10 years agouse size_t instead of int for a length
dholland [Sat, 22 Mar 2014 23:39:04 +0000 (23:39 +0000)]
use size_t instead of int for a length

10 years agoUse random(), not rand().
dholland [Sat, 22 Mar 2014 23:33:33 +0000 (23:33 +0000)]
Use random(), not rand().

10 years agoavoid unnecessary floating point ops
dholland [Sat, 22 Mar 2014 23:31:28 +0000 (23:31 +0000)]
avoid unnecessary floating point ops

10 years agoavoid signed left-shift
dholland [Sat, 22 Mar 2014 23:23:55 +0000 (23:23 +0000)]
avoid signed left-shift

10 years agoUse CHAR_BIT, not 8.
dholland [Sat, 22 Mar 2014 23:16:21 +0000 (23:16 +0000)]
Use CHAR_BIT, not 8.

10 years agodon't declare ospeed; it's in <termcap.h>
dholland [Sat, 22 Mar 2014 23:10:36 +0000 (23:10 +0000)]
don't declare ospeed; it's in <termcap.h>

10 years agoMake the list of place types an enumeration. Use unsigned values for
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.

10 years agouse a more suitable type
dholland [Sat, 22 Mar 2014 22:47:07 +0000 (22:47 +0000)]
use a more suitable type

10 years agouse more suitable types
dholland [Sat, 22 Mar 2014 22:45:05 +0000 (22:45 +0000)]
use more suitable types

10 years agowoops, more of previous.
dholland [Sat, 22 Mar 2014 22:33:35 +0000 (22:33 +0000)]
woops, more of previous.

10 years agoMake some things unsigned that should be (why would we need e.g. a
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.

10 years agoDon't cast the return value of malloc.
dholland [Sat, 22 Mar 2014 22:09:14 +0000 (22:09 +0000)]
Don't cast the return value of malloc.

10 years agoMinor tidyup.
dholland [Sat, 22 Mar 2014 22:04:40 +0000 (22:04 +0000)]
Minor tidyup.

10 years agotag decl() __noinline, as inlining it would defeat its purpose
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)

10 years agoRevert part of previous -r1.21 and fix the errno-handling bug instead.
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.

10 years agomove extern decls to .h files
dholland [Sat, 22 Mar 2014 18:58:57 +0000 (18:58 +0000)]
move extern decls to .h files

10 years agoMerge riastradh-drm2 to HEAD.
riastradh [Tue, 18 Mar 2014 18:20:35 +0000 (18:20 +0000)]
Merge riastradh-drm2 to HEAD.

10 years agofix typo, from Henning Petersen in PR misc/48613
dholland [Sat, 22 Feb 2014 17:21:19 +0000 (17:21 +0000)]
fix typo, from Henning Petersen in PR misc/48613

11 years agoremove duplicate
dholland [Wed, 11 Dec 2013 14:59:47 +0000 (14:59 +0000)]
remove duplicate

11 years agoanother minor fix
dholland [Wed, 11 Dec 2013 14:56:10 +0000 (14:56 +0000)]
another minor fix

11 years agoReinstate typo since kre claims it's by purpose.
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.

11 years agoError and typo fixes from OpenBSD and FreeBSD via Henning Petersen
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.

11 years agoError and typo fixes from OpenBSD and FreeBSD via Henning Petersen
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.

11 years agoWARNS=5
dholland [Sat, 7 Dec 2013 02:24:12 +0000 (02:24 +0000)]
WARNS=5

11 years agohals_end(6) outputs the last words of the supercomputer HAL 9000 aboard
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.

11 years agofix unused variable warnings
christos [Sat, 19 Oct 2013 17:19:30 +0000 (17:19 +0000)]
fix unused variable warnings

11 years agoUntabify the header definition to avoid misaligned comment on
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.

11 years agoUse .Fa instead of .Ar to refer to header fields.
uwe [Thu, 19 Sep 2013 00:53:55 +0000 (00:53 +0000)]
Use .Fa instead of .Ar to refer to header fields.

11 years agoNow that we use "nbtool_config.h" we can use __dead again and drop
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.

11 years agoDon't define TRUE/FALSE, which may conflict with host headers.
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.

11 years ago#include "nbtool_config.h" to pull in getprogname() declaration.
uwe [Wed, 18 Sep 2013 23:18:14 +0000 (23:18 +0000)]
#include "nbtool_config.h" to pull in getprogname() declaration.

11 years agoGC descr and helpm.
joerg [Fri, 13 Sep 2013 20:46:50 +0000 (20:46 +0000)]
GC descr and helpm.

11 years agohook cgram to the build
dholland [Sun, 1 Sep 2013 18:37:06 +0000 (18:37 +0000)]
hook cgram to the build

11 years agoWARNS=5
dholland [Sun, 11 Aug 2013 03:44:27 +0000 (03:44 +0000)]
WARNS=5

11 years agotypo in comment
dholland [Sun, 11 Aug 2013 03:34:48 +0000 (03:34 +0000)]
typo in comment

11 years agothis already passes WARNS=5
dholland [Sun, 11 Aug 2013 03:27:02 +0000 (03:27 +0000)]
this already passes WARNS=5

11 years agoAdd RCS Id.
wiz [Sun, 4 Aug 2013 07:55:09 +0000 (07:55 +0000)]
Add RCS Id.

11 years agoAdd a curses gizmo for solving Sunday-paper-type cryptograms based on
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...

11 years agoFix typo.
wiz [Wed, 24 Jul 2013 06:57:09 +0000 (06:57 +0000)]
Fix typo.

11 years agoadd an Oscar Wilde quote
jnemeth [Wed, 24 Jul 2013 04:41:49 +0000 (04:41 +0000)]
add an Oscar Wilde quote

11 years agoUse Mt for email addresses.
wiz [Sat, 20 Jul 2013 21:39:55 +0000 (21:39 +0000)]
Use Mt for email addresses.

11 years agoFix sendmail section (8 -> 1) in xrefs.
njoly [Tue, 9 Jul 2013 09:41:30 +0000 (09:41 +0000)]
Fix sendmail section (8 -> 1) in xrefs.

11 years agoDon't expect fairings.
dholland [Sun, 12 May 2013 03:29:07 +0000 (03:29 +0000)]
Don't expect fairings.

11 years agoFix same typo in the other file in which it occurs
pgoyette [Sun, 17 Feb 2013 13:39:51 +0000 (13:39 +0000)]
Fix same typo in the other file in which it occurs

11 years agoFix minor typo
pgoyette [Sun, 17 Feb 2013 13:36:01 +0000 (13:36 +0000)]
Fix minor typo

11 years agorename target paper.${PRINTER} to paper.ps -- PRINTER isnt defined anywhere!
jmcneill [Sun, 17 Feb 2013 12:17:40 +0000 (12:17 +0000)]
rename target paper.${PRINTER} to paper.ps -- PRINTER isnt defined anywhere!

11 years agoWorkaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make...
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.

11 years agoWorkaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make...
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.

12 years agoAdd some quotes by Henry Ford, found at:
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

12 years agoFix misspelling of acceptible (it's only acceptable with an 'a', not an 'i').
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').

12 years agoFix two quotes from "The Tao of Programming". From FreeBSD.
mbalmer [Thu, 22 Nov 2012 11:32:19 +0000 (11:32 +0000)]
Fix two quotes from "The Tao of Programming".  From FreeBSD.

12 years agoPR/47178 from Bug Hunting
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.

12 years agoAttribute "The STAR WARS Song" to "Weird Al" Yankovic under the proper title,
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".

12 years agoPass -Wstrict-overflow
dholland [Sat, 13 Oct 2012 21:03:09 +0000 (21:03 +0000)]
Pass -Wstrict-overflow

12 years agoPass -Wstrict-overflow; while here, use curses TRUE and FALSE only with
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.

12 years agoPass -Wstrict-overflow... mostly.
dholland [Sat, 13 Oct 2012 20:57:35 +0000 (20:57 +0000)]
Pass -Wstrict-overflow... mostly.

12 years agoPass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 20:42:56 +0000 (20:42 +0000)]
Pass -Wstrict-overflow.

12 years agoPass -Wstrict-overflow, and while here, don't read from index -1 of
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.

12 years agoFactor out some common code; pass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 20:12:18 +0000 (20:12 +0000)]
Factor out some common code; pass -Wstrict-overflow.

12 years agoPass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 19:58:53 +0000 (19:58 +0000)]
Pass -Wstrict-overflow.

12 years agoMove scratch variables of main to main, instead of having them be
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.

12 years agoAdd strategic assertion, now passes -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 19:39:57 +0000 (19:39 +0000)]
Add strategic assertion, now passes -Wstrict-overflow.

12 years agoRemove ifdefs for V7 (as opposed to older) unix.
dholland [Sat, 13 Oct 2012 19:25:22 +0000 (19:25 +0000)]
Remove ifdefs for V7 (as opposed to older) unix.

12 years agoPass the move info around instead of using it as a global.
dholland [Sat, 13 Oct 2012 19:19:38 +0000 (19:19 +0000)]
Pass the move info around instead of using it as a global.

12 years agoCrack down on global variables with single-letter names.
dholland [Sat, 13 Oct 2012 18:44:14 +0000 (18:44 +0000)]
Crack down on global variables with single-letter names.

12 years agofix previous, thanks asau@
dholland [Fri, 12 Oct 2012 15:41:10 +0000 (15:41 +0000)]
fix previous, thanks asau@

12 years agoDon't use ++ to set flags to true. Now passes -Wstrict-overflow.
dholland [Fri, 12 Oct 2012 10:44:20 +0000 (10:44 +0000)]
Don't use ++ to set flags to true. Now passes -Wstrict-overflow.

12 years agoPass -Wstrict-overflow.
dholland [Fri, 12 Oct 2012 10:38:53 +0000 (10:38 +0000)]
Pass -Wstrict-overflow.

12 years agoif 0 is used for the dimensions, compute the maximum size.
christos [Sat, 6 Oct 2012 19:39:51 +0000 (19:39 +0000)]
if 0 is used for the dimensions, compute the maximum size.

12 years agoBump date for previous.
wiz [Wed, 3 Oct 2012 19:50:43 +0000 (19:50 +0000)]
Bump date for previous.

12 years ago- improve wording and overall program description (notably for `-f');
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.