diff options
author | dholland <dholland@NetBSD.org> | 2011-08-06 20:42:43 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2011-08-06 20:42:43 +0000 |
commit | 18451d9c4ce377951796a0ac6188ca7b1bf34335 (patch) | |
tree | 00559b038f5c1f5101bdf9fecb6c54f64f5fbd0e /hack/hack.pager.c | |
parent | c01c2acdb28beaea904ac85b7433c7c1a5c30e99 (diff) | |
download | bsdgames-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.pager.c')
-rw-r--r-- | hack/hack.pager.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hack/hack.pager.c b/hack/hack.pager.c index af7ac54c..5f2c50fd 100644 --- a/hack/hack.pager.c +++ b/hack/hack.pager.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.pager.c,v 1.18 2011/08/06 20:29:37 dholland Exp $ */ +/* $NetBSD: hack.pager.c,v 1.19 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.pager.c,v 1.18 2011/08/06 20:29:37 dholland Exp $"); +__RCSID("$NetBSD: hack.pager.c,v 1.19 2011/08/06 20:42:43 dholland Exp $"); #endif /* not lint */ /* This file contains the command routine dowhatis() and a pager. */ @@ -392,7 +392,7 @@ page_file(const char *fnam, boolean silent) if (!silent) printf("Cannot open %s as stdin.\n", fnam); } else { - execl(catmore, "page", (char *) 0); + execl(catmore, "page", (char *)NULL); if (!silent) printf("Cannot exec %s.\n", catmore); } @@ -428,9 +428,9 @@ dosh(void) char *str; if (child(0)) { if ((str = getenv("SHELL")) != NULL) - execl(str, str, (char *) 0); + execl(str, str, (char *)NULL); else - execl("/bin/sh", "sh", (char *) 0); + execl("/bin/sh", "sh", (char *)NULL); pline("sh: cannot execute."); exit(1); } @@ -446,7 +446,7 @@ child(int wt) f = fork(); if (f == 0) { /* child */ - settty((char *) 0); /* also calls end_screen() */ + settty(NULL); /* also calls end_screen() */ (void) setuid(getuid()); (void) setgid(getgid()); #ifdef CHDIR |