Skip to content

Commit 86514c1

Browse files
author
Johnny Wang
authored
bugfix: fixed missing 'const' qualifier causing compilation failure on freebsd. (#1914)
1 parent a9cd21e commit 86514c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ngx_http_lua_pipe.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,13 @@ ngx_http_lua_pipe_fd_write(ngx_connection_t *c, u_char *buf, size_t size)
547547

548548
#if !(NGX_HTTP_LUA_HAVE_EXECVPE)
549549
static int
550-
ngx_http_lua_execvpe(const char *program, char **argv, char **envp)
550+
ngx_http_lua_execvpe(const char *program, char * const argv[],
551+
char * const envp[])
551552
{
552553
char **saved = environ;
553554
int rc;
554555

555-
environ = envp;
556+
environ = (char **) envp;
556557
rc = execvp(program, argv);
557558
environ = saved;
558559
return rc;

0 commit comments

Comments
 (0)