478d72d25c
Robert Nagy <thuglife@bsd.hu>.
25 lines
825 B
Plaintext
25 lines
825 B
Plaintext
$OpenBSD: patch-src_subshell_c,v 1.1 2004/04/11 00:40:59 naddy Exp $
|
|
--- src/subshell.c.orig 2003-10-26 07:46:02.000000000 +0100
|
|
+++ src/subshell.c 2004-04-11 02:36:03.000000000 +0200
|
|
@@ -265,17 +265,17 @@ static void init_subshell_child (const c
|
|
switch (subshell_type)
|
|
{
|
|
case BASH:
|
|
- execl (shell, "bash", "-rcfile", init_file, NULL);
|
|
+ execl (shell, "bash", "-rcfile", init_file, (char *)NULL);
|
|
break;
|
|
|
|
case TCSH:
|
|
- execl (shell, "tcsh", NULL);
|
|
+ execl (shell, "tcsh", (char *)NULL);
|
|
break;
|
|
|
|
case ZSH:
|
|
/* Use -g to exclude cmds beginning with space from history
|
|
* and -Z to use the line editor on non-interactive term */
|
|
- execl (shell, "zsh", "-Z", "-g", NULL);
|
|
+ execl (shell, "zsh", "-Z", "-g", (char *)NULL);
|
|
|
|
break;
|
|
}
|