diff options
| author | Richard M. Stallman | 1997-12-28 19:19:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-12-28 19:19:00 +0000 |
| commit | 2d607244557193225aa2770fabc6eb72d74bcbd0 (patch) | |
| tree | 013e85de7fe34308de471c0a952224bd7a39cb44 /src | |
| parent | 88623f1c40765cc4caafc4b63a8ccc017e9be49f (diff) | |
| download | emacs-2d607244557193225aa2770fabc6eb72d74bcbd0.tar.gz emacs-2d607244557193225aa2770fabc6eb72d74bcbd0.zip | |
(Fcall_process): Cast new_argv for child_setup.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/callproc.c b/src/callproc.c index 4ded0e8efa5..697a3befb1d 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -210,6 +210,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") | |||
| 210 | char *bufptr = buf; | 210 | char *bufptr = buf; |
| 211 | int bufsize = 16384; | 211 | int bufsize = 16384; |
| 212 | int count = specpdl_ptr - specpdl; | 212 | int count = specpdl_ptr - specpdl; |
| 213 | |||
| 213 | register unsigned char **new_argv | 214 | register unsigned char **new_argv |
| 214 | = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); | 215 | = (unsigned char **) alloca ((max (2, nargs - 2)) * sizeof (char *)); |
| 215 | struct buffer *old = current_buffer; | 216 | 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 | } | 580 | } |
| 580 | #else /* not MSDOS */ | 581 | #else /* not MSDOS */ |
| 581 | #ifdef WINDOWSNT | 582 | #ifdef WINDOWSNT |
| 582 | pid = child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir); | 583 | pid = child_setup (filefd, fd1, fd_error, (char **) new_argv, |
| 584 | 0, current_dir); | ||
| 583 | #else /* not WINDOWSNT */ | 585 | #else /* not WINDOWSNT */ |
| 584 | pid = vfork (); | 586 | pid = vfork (); |
| 585 | 587 | ||
| @@ -595,7 +597,8 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") | |||
| 595 | #else | 597 | #else |
| 596 | setpgrp (pid, pid); | 598 | setpgrp (pid, pid); |
| 597 | #endif /* USG */ | 599 | #endif /* USG */ |
| 598 | child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir); | 600 | child_setup (filefd, fd1, fd_error, (char **) new_argv, |
| 601 | 0, current_dir); | ||
| 599 | } | 602 | } |
| 600 | #endif /* not WINDOWSNT */ | 603 | #endif /* not WINDOWSNT */ |
| 601 | 604 | ||