webmcp
changeset 550:59d2aaa6df07
Suppress compiler warning regarding const qualifier of argument to execvp
author | jbe |
---|---|
date | Wed Oct 23 19:32:40 2019 +0200 (2019-10-23) |
parents | 77355fe3b1cc |
children | a0f1a4e76556 |
files | libraries/extos/extos.c |
line diff
1.1 --- a/libraries/extos/extos.c Tue Oct 22 13:45:45 2019 +0200 1.2 +++ b/libraries/extos/extos.c Wed Oct 23 19:32:40 2019 +0200 1.3 @@ -262,7 +262,7 @@ 1.4 if (result != 1) goto extos_pfilter_error_fd_remapping; 1.5 do result = dup(pipe_err[1]); while (result < 0 && errno == EINTR); 1.6 if (result != 2) goto extos_pfilter_error_fd_remapping; 1.7 - execvp(filename, args); 1.8 + execvp(filename, (char *const *)args); // coercion to suppress compiler warning 1.9 status_buf[0] = errno; 1.10 do result = write(pipe_status[1], status_buf, 1); while (result < 0 && errno == EINTR); 1.11 _exit(0);