summaryrefslogtreecommitdiffstats
path: root/hack/hack.unix.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2011-08-06 20:42:43 +0000
committerdholland <dholland@NetBSD.org>2011-08-06 20:42:43 +0000
commit18451d9c4ce377951796a0ac6188ca7b1bf34335 (patch)
tree00559b038f5c1f5101bdf9fecb6c54f64f5fbd0e /hack/hack.unix.c
parentc01c2acdb28beaea904ac85b7433c7c1a5c30e99 (diff)
downloadbsdgames-darwin-18451d9c4ce377951796a0ac6188ca7b1bf34335.tar.gz
bsdgames-darwin-18451d9c4ce377951796a0ac6188ca7b1bf34335.tar.zst
bsdgames-darwin-18451d9c4ce377951796a0ac6188ca7b1bf34335.zip
Fix up still more casts; use NULL instead of (char *)0.
Diffstat (limited to 'hack/hack.unix.c')
-rw-r--r--hack/hack.unix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hack/hack.unix.c b/hack/hack.unix.c
index 77db96d7..44db67fb 100644
--- a/hack/hack.unix.c
+++ b/hack/hack.unix.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.unix.c,v 1.14 2009/08/12 07:28:41 dholland Exp $ */
+/* $NetBSD: hack.unix.c,v 1.15 2011/08/06 20:42:43 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.unix.c,v 1.14 2009/08/12 07:28:41 dholland Exp $");
+__RCSID("$NetBSD: hack.unix.c,v 1.15 2011/08/06 20:42:43 dholland Exp $");
#endif /* not lint */
/* This file collects some Unix dependencies; hack.pager.c contains some more */
@@ -242,7 +242,7 @@ veryold(int fd)
int lockedpid; /* should be the same size as
* hackpid */
- if (read(fd, (char *) &lockedpid, sizeof(lockedpid)) !=
+ if (read(fd, &lockedpid, sizeof(lockedpid)) !=
sizeof(lockedpid))
/* strange ... */
return (0);
@@ -327,7 +327,7 @@ gotlock:
if (fd == -1) {
error("cannot creat lock file.");
} else {
- if (write(fd, (char *) &hackpid, sizeof(hackpid))
+ if (write(fd, &hackpid, sizeof(hackpid))
!= sizeof(hackpid)) {
error("cannot write lock");
}
@@ -506,7 +506,7 @@ readmail(void)
if (!(mr = getenv("MAILREADER")))
mr = DEF_MAILREADER;
if (child(1)) {
- execl(mr, mr, (char *) 0);
+ execl(mr, mr, (char *)NULL);
exit(1);
}
#else /* DEF_MAILREADER */