posix_spawn-internal: Make better use of 'const'.
commit29d55bf8c7d0c5a4a3b4aa2d93d897ff8463eb4c
authorBruno Haible <bruno@clisp.org>
Mon, 14 Dec 2020 18:22:14 +0000 (14 19:22 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 14 Dec 2020 18:22:14 +0000 (14 19:22 +0100)
tree6bb7d12cfba8c37e0fd96d3ab9883493943d9707
parent12c8567fcbe7e7baf89ba9fadc157e0a336705dc
posix_spawn-internal: Make better use of 'const'.

* lib/spawn_int.h (__spawni): Does not need write access to the elements
of argv and envp.
* lib/spawni.c (__spawni, script_execute): Likewise.
* lib/spawn.c (posix_spawn): Update caller.
* lib/spawnp.c (posix_spawnp): Likewise.
ChangeLog
lib/spawn.c
lib/spawn_int.h
lib/spawni.c
lib/spawnp.c