diff options
author | Sam Bingner <sam@bingner.com> | 2019-04-11 22:41:08 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-04-12 11:10:14 -1000 |
commit | bb4b56650746f18f9ea7f821eeb5c3d0cedc9976 (patch) | |
tree | 147e0f10cd42b9bce1cb92190e84d5d3ac82e2c7 /apt-pkg | |
parent | 706e8fe6cb93323e6b03c662aaced03a36db3574 (diff) |
Make the compiler complain less1.4.9+ios
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/contrib/fileutl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index bb05239c9..ba1db46be 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -38,7 +38,7 @@ static inline int _execvp(const char *file, char *const argv[]) { if (errno == ENOEXEC || errno == EPERM) { int argc; for (argc = 0; argv[argc] != NULL; argc++); - char *newargv[argc+4]; + const char *newargv[argc+4]; newargv[0] = "/bin/sh"; newargv[1] = "-c"; newargv[2] = "exec \"$0\" \"$@\""; @@ -46,7 +46,7 @@ static inline int _execvp(const char *file, char *const argv[]) { newargv[i+3] = argv[i]; } newargv[argc+3] = NULL; - return execvp(newargv[0], newargv); + return execvp(newargv[0], (char * const *)newargv); } return rv; } |