summaryrefslogtreecommitdiff
path: root/pathexec_env.c
diff options
context:
space:
mode:
Diffstat (limited to 'pathexec_env.c')
-rw-r--r--pathexec_env.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pathexec_env.c b/pathexec_env.c
index 1305469..f873094 100644
--- a/pathexec_env.c
+++ b/pathexec_env.c
@@ -22,9 +22,9 @@ int pathexec_env(const char *s,const char *t)
22 return stralloc_cat(&plus,&tmp); 22 return stralloc_cat(&plus,&tmp);
23} 23}
24 24
25void pathexec_env_run(const char *file, const char *const *argv) 25void pathexec_env_run(const char *file, char *const *argv)
26{ 26{
27 const char **e; 27 char **e;
28 unsigned int elen; 28 unsigned int elen;
29 unsigned int i; 29 unsigned int i;
30 unsigned int j; 30 unsigned int j;
@@ -40,7 +40,7 @@ void pathexec_env_run(const char *file, const char *const *argv)
40 if (!plus.s[i]) 40 if (!plus.s[i])
41 ++elen; 41 ++elen;
42 42
43 e = (const char **) alloc((elen + 1) * sizeof(char *)); 43 e = (char **) alloc((elen + 1) * sizeof(char *));
44 if (!e) return; 44 if (!e) return;
45 45
46 elen = 0; 46 elen = 0;
@@ -68,7 +68,7 @@ void pathexec_env_run(const char *file, const char *const *argv)
68 alloc_free(e); 68 alloc_free(e);
69} 69}
70 70
71void pathexec(const char *const *argv) 71void pathexec(char *const *argv)
72{ 72{
73 return pathexec_env_run(*argv, argv); 73 return pathexec_env_run(*argv, argv);
74} 74}