summaryrefslogtreecommitdiff
path: root/games/boggle
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/boggle
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/boggle')
-rw-r--r--games/boggle/boggle/help.c4
-rw-r--r--games/boggle/boggle/mach.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/games/boggle/boggle/help.c b/games/boggle/boggle/help.c
index 764c54d2606..9fbf0986514 100644
--- a/games/boggle/boggle/help.c
+++ b/games/boggle/boggle/help.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: help.c,v 1.6 2016/01/10 13:18:07 mestre Exp $ */
+/* $OpenBSD: help.c,v 1.7 2016/01/10 14:10:38 mestre Exp $ */
/* $NetBSD: help.c,v 1.2 1995/03/21 12:14:38 cgd Exp $ */
/*-
@@ -60,7 +60,7 @@ help(void)
while (!eof) {
for (i = 0; i < nlines - 3; i++) {
- if (fgets(buf, sizeof(buf), fp) == (char *) NULL) {
+ if (fgets(buf, sizeof(buf), fp) == NULL) {
eof = 1;
break;
}
diff --git a/games/boggle/boggle/mach.c b/games/boggle/boggle/mach.c
index 0121c01fe72..9c356f073c6 100644
--- a/games/boggle/boggle/mach.c
+++ b/games/boggle/boggle/mach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mach.c,v 1.20 2016/01/10 13:35:09 mestre Exp $ */
+/* $OpenBSD: mach.c,v 1.21 2016/01/10 14:10:38 mestre Exp $ */
/* $NetBSD: mach.c,v 1.5 1995/04/28 22:28:48 mycroft Exp $ */
/*-
@@ -274,7 +274,7 @@ get_line(char *q)
}
*p = '\0';
if (ch == EOF)
- return((char *) NULL);
+ return(NULL);
return(q);
}