From 8234c650dfd9324e5ad665576479d6da21fea2db Mon Sep 17 00:00:00 2001 From: mestre Date: Sun, 10 Jan 2016 14:10:40 +0000 Subject: 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@ --- games/boggle/boggle/help.c | 4 ++-- games/boggle/boggle/mach.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'games/boggle') 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); } -- cgit v1.2.3