From 40bc77d9a6b8d824690fb6ee3003d74951bb3ae5 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Wed, 23 Dec 2020 17:40:18 +0100 Subject: [PATCH] Declare argument vector as char *const *. This matches the signature of execve. * src/callproc.c (child_setup): Declare NEW_ARGV as char *const *. --- src/callproc.c | 4 ++-- src/lisp.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/callproc.c b/src/callproc.c index bd8442ce2b9..c7f560ac3da 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -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; diff --git a/src/lisp.h b/src/lisp.h index 07ba2bcbbaf..1a214a3cbf6 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -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); -- 2.39.5