Declare argument vector as char *const *.
This matches the signature of execve. * src/callproc.c (child_setup): Declare NEW_ARGV as char *const *.
This commit is contained in:
parent
773f9eb467
commit
40bc77d9a6
2 changed files with 4 additions and 4 deletions
|
@ -1222,8 +1222,8 @@ exec_failed (char const *name, int err)
|
|||
On MS-DOS, either return an exit status or signal an error. */
|
||||
|
||||
CHILD_SETUP_TYPE
|
||||
child_setup (int in, int out, int err, char **new_argv, char *const *env,
|
||||
const char *current_dir)
|
||||
child_setup (int in, int out, int err, char *const *new_argv,
|
||||
char *const *env, const char *current_dir)
|
||||
{
|
||||
#ifdef WINDOWSNT
|
||||
int cpid;
|
||||
|
|
|
@ -4500,8 +4500,8 @@ extern void setup_process_coding_systems (Lisp_Object);
|
|||
# define CHILD_SETUP_ERROR_DESC "Doing vfork"
|
||||
#endif
|
||||
|
||||
extern CHILD_SETUP_TYPE child_setup (int, int, int, char **, char *const *,
|
||||
const char *);
|
||||
extern CHILD_SETUP_TYPE child_setup (int, int, int, char *const *,
|
||||
char *const *, const char *);
|
||||
extern char *const *make_environment_block (Lisp_Object);
|
||||
extern void init_callproc_1 (void);
|
||||
extern void init_callproc (void);
|
||||
|
|
Loading…
Add table
Reference in a new issue