summaryrefslogtreecommitdiffstats
path: root/sail/pl_main.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-03-14 18:41:21 +0000
committerdholland <dholland@NetBSD.org>2009-03-14 18:41:21 +0000
commit458c440612e1d5d8ad36c7d3ab6f4a0a9e99aa93 (patch)
treebdf0179c09d480e986febe80d20d5522e0aa2a35 /sail/pl_main.c
parent46cbf84f76cfe8fb29ae3f5a16b5302a687c9691 (diff)
downloadbsdgames-darwin-458c440612e1d5d8ad36c7d3ab6f4a0a9e99aa93.tar.gz
bsdgames-darwin-458c440612e1d5d8ad36c7d3ab6f4a0a9e99aa93.tar.zst
bsdgames-darwin-458c440612e1d5d8ad36c7d3ab6f4a0a9e99aa93.zip
Remove some unnecessary casts.
Diffstat (limited to 'sail/pl_main.c')
-rw-r--r--sail/pl_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sail/pl_main.c b/sail/pl_main.c
index 6d068010..946907b1 100644
--- a/sail/pl_main.c
+++ b/sail/pl_main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pl_main.c,v 1.20 2009/03/14 18:32:47 dholland Exp $ */
+/* $NetBSD: pl_main.c,v 1.21 2009/03/14 18:41:21 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pl_main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pl_main.c,v 1.20 2009/03/14 18:32:47 dholland Exp $");
+__RCSID("$NetBSD: pl_main.c,v 1.21 2009/03/14 18:41:21 dholland Exp $");
#endif
#endif /* not lint */
@@ -134,7 +134,7 @@ reprint:
if (sp >= ls) {
puts("All ships taken in that scenario.");
foreachship(sp)
- free((char *)sp->file);
+ free(sp->file);
sync_close(0);
people = 0;
goto reprint;
@@ -202,7 +202,7 @@ reprint:
printf("Your ship is the %s, a %d gun %s (%s crew).\n",
ms->shipname, mc->guns, classname[mc->class],
qualname[mc->qual]);
- if ((nameptr = (char *) getenv("SAILNAME")) && *nameptr)
+ if ((nameptr = getenv("SAILNAME")) && *nameptr)
strlcpy(captain, nameptr, sizeof captain);
else {
printf("Your name, Captain? ");