Mercurial > emacs
changeset 20525:468f59c6c9bf
(Fcall_process): Cast new_argv for child_setup.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 28 Dec 1997 19:19:00 +0000 |
parents | 07dc8bbcb2c8 |
children | ec0a8ccddd6c |
files | src/callproc.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/callproc.c Sun Dec 28 19:06:57 1997 +0000 +++ b/src/callproc.c Sun Dec 28 19:19:00 1997 +0000 @@ -210,6 +210,7 @@ char *bufptr = buf; int bufsize = 16384; int count = specpdl_ptr - specpdl; + register unsigned char **new_argv = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); struct buffer *old = current_buffer; @@ -579,7 +580,8 @@ } #else /* not MSDOS */ #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 */ pid = vfork (); @@ -595,7 +597,8 @@ #else setpgrp (pid, pid); #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 */