]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/su.c: Use const_cast() to silence -Wincompatible-pointer-types-discards-qualifiers
authorAlejandro Colomar <alx@kernel.org>
Mon, 22 Jan 2024 21:52:59 +0000 (22:52 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 26 Jan 2024 08:40:10 +0000 (09:40 +0100)
commit3e0cdc87b729d4b7209b3ceb78ee81b8ba60f896
tree6810c3e15e23d9bbb3c92991dfa42f365df9ff90
parente9fc8fc7ef3ed69fcccc4eef0d13f193a3bde7cc
src/su.c: Use const_cast() to silence -Wincompatible-pointer-types-discards-qualifiers

argv is passed to execve(3), which for historic reasons is non-const,
but doesn't modify the strings.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/su.c