summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/process.c b/process.c
index 13c121f070..4b71998b99 100644
--- a/process.c
+++ b/process.c
@@ -1058,15 +1058,9 @@ exec_with_sh(const char *prog, char **argv, char **envp)
execv("/bin/sh", argv); /* async-signal-safe */
}
-#define ARGV_COUNT(n) ((n)+1)
#else
#define try_with_sh(prog, argv, envp) (void)0
-#define ARGV_COUNT(n) (n)
#endif
-#define ARGV_SIZE(n) (sizeof(char*) * ARGV_COUNT(n))
-#define ALLOC_ARGV(n, v) ALLOCV_N(char*, (v), ARGV_COUNT(n))
-#define ALLOC_ARGV_WITH_STR(n, v, s, l) \
- (char **)(((s) = ALLOCV_N(char, (v), ARGV_SIZE(n) + (l)) + ARGV_SIZE(n)) - ARGV_SIZE(n))
/* This function should be async-signal-safe. Actually it isn't because after_exec(). */
static int