[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 40bc77d: Declare argument vector as char *const *.
From: |
Philipp Stephani |
Subject: |
master 40bc77d: Declare argument vector as char *const *. |
Date: |
Wed, 23 Dec 2020 11:41:01 -0500 (EST) |
branch: master
commit 40bc77d9a6b8d824690fb6ee3003d74951bb3ae5
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>
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 bd8442c..c7f560a 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 07ba2bc..1a214a3 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 40bc77d: Declare argument vector as char *const *.,
Philipp Stephani <=