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 --- wump/wump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wump') diff --git a/wump/wump.c b/wump/wump.c index 770aebab..559ebc9b 100644 --- a/wump/wump.c +++ b/wump/wump.c @@ -1,4 +1,4 @@ -/* $NetBSD: wump.c,v 1.28 2011/08/31 16:24:57 plunky Exp $ */ +/* $NetBSD: wump.c,v 1.29 2011/09/01 07:18:51 plunky Exp $ */ /* * Copyright (c) 1989, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\ #if 0 static char sccsid[] = "@(#)wump.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: wump.c,v 1.28 2011/08/31 16:24:57 plunky Exp $"); +__RCSID("$NetBSD: wump.c,v 1.29 2011/09/01 07:18:51 plunky Exp $"); #endif #endif /* not lint */ @@ -781,7 +781,7 @@ puff of greasy black smoke! (poof)\n"); err(1, "open %s", _PATH_WUMPINFO); if (dup2(fd, STDIN_FILENO) == -1) err(1, "dup2"); - (void)execl("/bin/sh", "sh", "-c", pager, NULL); + (void)execl("/bin/sh", "sh", "-c", pager, (char *) NULL); err(1, "exec sh -c %s", pager); case -1: err(1, "fork"); -- cgit v1.2.3-56-ge451