From 05e32d2c4644c0f6f1cef31873e8d2d0642efa1c Mon Sep 17 00:00:00 2001 From: plunky Date: Thu, 1 Sep 2011 07:18:50 +0000 Subject: reinstate NULL cast by request, where the NULL was being passed as a vararg --- hack/hack.pager.c | 10 +++++----- hack/hack.unix.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'hack') diff --git a/hack/hack.pager.c b/hack/hack.pager.c index d2e6422b..6d9855f5 100644 --- a/hack/hack.pager.c +++ b/hack/hack.pager.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.pager.c,v 1.20 2011/08/31 16:24:56 plunky Exp $ */ +/* $NetBSD: hack.pager.c,v 1.21 2011/09/01 07:18:50 plunky Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.pager.c,v 1.20 2011/08/31 16:24:56 plunky Exp $"); +__RCSID("$NetBSD: hack.pager.c,v 1.21 2011/09/01 07:18:50 plunky 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", NULL); + 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, NULL); + execl(str, str, (char *)NULL); else - execl("/bin/sh", "sh", NULL); + execl("/bin/sh", "sh", (char *)NULL); pline("sh: cannot execute."); exit(1); } diff --git a/hack/hack.unix.c b/hack/hack.unix.c index 8e82fefa..dd4c6799 100644 --- a/hack/hack.unix.c +++ b/hack/hack.unix.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.unix.c,v 1.16 2011/08/31 16:24:56 plunky Exp $ */ +/* $NetBSD: hack.unix.c,v 1.17 2011/09/01 07:18:50 plunky Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -63,7 +63,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.unix.c,v 1.16 2011/08/31 16:24:56 plunky Exp $"); +__RCSID("$NetBSD: hack.unix.c,v 1.17 2011/09/01 07:18:50 plunky Exp $"); #endif /* not lint */ /* This file collects some Unix dependencies; hack.pager.c contains some more */ @@ -506,7 +506,7 @@ readmail(void) if (!(mr = getenv("MAILREADER"))) mr = DEF_MAILREADER; if (child(1)) { - execl(mr, mr, NULL); + execl(mr, mr, (char *)NULL); exit(1); } #else /* DEF_MAILREADER */ -- cgit v1.2.3-56-ge451