Commit 2d607244 authored by Richard M. Stallman's avatar Richard M. Stallman

(Fcall_process): Cast new_argv for child_setup.

parent 88623f1c
...@@ -210,6 +210,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") ...@@ -210,6 +210,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
char *bufptr = buf; char *bufptr = buf;
int bufsize = 16384; int bufsize = 16384;
int count = specpdl_ptr - specpdl; int count = specpdl_ptr - specpdl;
register unsigned char **new_argv register unsigned char **new_argv
= (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *));
struct buffer *old = current_buffer; struct buffer *old = current_buffer;
...@@ -579,7 +580,8 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") ...@@ -579,7 +580,8 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
} }
#else /* not MSDOS */ #else /* not MSDOS */
#ifdef WINDOWSNT #ifdef WINDOWSNT
pid = child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir); pid = child_setup (filefd, fd1, fd_error, (char **) new_argv,
0, current_dir);
#else /* not WINDOWSNT */ #else /* not WINDOWSNT */
pid = vfork (); pid = vfork ();
...@@ -595,7 +597,8 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") ...@@ -595,7 +597,8 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
#else #else
setpgrp (pid, pid); setpgrp (pid, pid);
#endif /* USG */ #endif /* USG */
child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir); child_setup (filefd, fd1, fd_error, (char **) new_argv,
0, current_dir);
} }
#endif /* not WINDOWSNT */ #endif /* not WINDOWSNT */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment