summaryrefslogtreecommitdiff
path: root/games/bs
diff options
context:
space:
mode:
authormestre <mestre@cvs.openbsd.org>2016-01-10 14:10:40 +0000
committermestre <mestre@cvs.openbsd.org>2016-01-10 14:10:40 +0000
commit8234c650dfd9324e5ad665576479d6da21fea2db (patch)
tree6db7203807d5437fbcdb1dc4994b1771da012b67 /games/bs
parent1ff71698b00a0496a82edb13ea27e66fe35c1677 (diff)
Remove needless casts to (char *) NULL. Some were kept, namely for execl(3)
last arguments since "The list of arguments must be terminated by a null null pointer" of type char * Suggested by and OK tb@
Diffstat (limited to 'games/bs')
-rw-r--r--games/bs/bs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c
index 8f4e3b9186f..94786b5dda3 100644
--- a/games/bs/bs.c
+++ b/games/bs/bs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bs.c,v 1.37 2016/01/08 20:19:06 mestre Exp $ */
+/* $OpenBSD: bs.c,v 1.38 2016/01/10 14:10:39 mestre Exp $ */
/*
* Copyright (c) 1986, Bruce Holloway
* All rights reserved.
@@ -512,7 +512,7 @@ regetchar:
prompt(1, "Random-placing your %s", ss->name);
randomplace(PLAYER, ss);
placeship(PLAYER, ss, TRUE);
- error((char *)NULL);
+ error(NULL);
ss->placed = TRUE;
break;
case 'R':
@@ -524,7 +524,7 @@ regetchar:
placeship(PLAYER, ss, TRUE);
ss->placed = TRUE;
}
- error((char *)NULL);
+ error(NULL);
break;
case 'k': case 'j': case 'h': case 'l':
@@ -544,7 +544,7 @@ regetchar:
if (checkplace(PLAYER, ss, TRUE))
{
placeship(PLAYER, ss, TRUE);
- error((char *)NULL);
+ error(NULL);
ss->placed = TRUE;
}
break;