summaryrefslogtreecommitdiffstats
path: root/fish
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2005-02-15 12:56:20 +0000
committerjsm <jsm@NetBSD.org>2005-02-15 12:56:20 +0000
commit38363f564a3551b2bbad6b3c7c4426e7faace013 (patch)
tree6585da9cc7ba63a91ab77e8e9d53cdee8152f020 /fish
parent2d2096fe16a45e25ea696042af076c06f41f4278 (diff)
downloadbsdgames-darwin-38363f564a3551b2bbad6b3c7c4426e7faace013.tar.gz
bsdgames-darwin-38363f564a3551b2bbad6b3c7c4426e7faace013.tar.zst
bsdgames-darwin-38363f564a3551b2bbad6b3c7c4426e7faace013.zip
Cast last argument of execl to (char *).
Reviewed by <hubertf>.
Diffstat (limited to 'fish')
-rw-r--r--fish/fish.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fish/fish.c b/fish/fish.c
index 3ce0668e..6c88f853 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fish.c,v 1.15 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: fish.c,v 1.16 2005/02/15 12:56:20 jsm Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\n\
#if 0
static char sccsid[] = "@(#)fish.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fish.c,v 1.15 2004/01/27 20:30:29 jsm Exp $");
+__RCSID("$NetBSD: fish.c,v 1.16 2005/02/15 12:56:20 jsm Exp $");
#endif
#endif /* not lint */
@@ -472,7 +472,7 @@ instructions()
err(1, "open %s", _PATH_INSTR);
if (dup2(fd, 0) == -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);
/*NOTREACHED*/
case -1: