* cons.handler.c (handle_console_linux): Replaced NULL with
(char *) NULL in call to execl. * subshell.c (init_subshell_child): Likewise. * utilunix.c (my_system): Likewise. From patches from the OpenBSD ports collection.
Этот коммит содержится в:
родитель
283441db92
Коммит
e0f5d6e37f
@ -1,3 +1,12 @@
|
||||
2004-09-24 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* cons.handler.c (handle_console_linux): Replaced NULL with
|
||||
(char *) NULL in call to execl.
|
||||
* subshell.c (init_subshell_child): Likewise.
|
||||
* utilunix.c (my_system): Likewise.
|
||||
|
||||
From patches from the OpenBSD ports collection.
|
||||
|
||||
2004-09-23 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* main.c (OS_Setup): Fixed segmentation fault.
|
||||
|
@ -145,7 +145,7 @@ handle_console_linux (unsigned char action)
|
||||
if (tty_name) {
|
||||
/* Exec the console save/restore handler */
|
||||
mc_conssaver = concat_dir_and_file (LIBDIR, "cons.saver");
|
||||
execl (mc_conssaver, "cons.saver", tty_name, NULL);
|
||||
execl (mc_conssaver, "cons.saver", tty_name, (char *) NULL);
|
||||
}
|
||||
/* Console is not a tty or execl() failed */
|
||||
console_flag = 0;
|
||||
|
@ -266,17 +266,17 @@ init_subshell_child (const char *pty_name)
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -234,9 +234,9 @@ int my_system (int flags, const char *shell, const char *command)
|
||||
signal (SIGCHLD, SIG_DFL);
|
||||
|
||||
if (flags & EXECUTE_AS_SHELL)
|
||||
execl (shell, shell, "-c", command, NULL);
|
||||
execl (shell, shell, "-c", command, (char *) NULL);
|
||||
else
|
||||
execlp (shell, shell, command, NULL);
|
||||
execlp (shell, shell, command, (char *) NULL);
|
||||
|
||||
_exit (127); /* Exec error */
|
||||
} else {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user