Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2d607244
Commit
2d607244
authored
Dec 28, 1997
by
Richard M. Stallman
Browse files
(Fcall_process): Cast new_argv for child_setup.
parent
88623f1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/callproc.c
src/callproc.c
+5
-2
No files found.
src/callproc.c
View file @
2d607244
...
...
@@ -210,6 +210,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
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 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
}
#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 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
#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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment