]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/cast.h: const_cast(): Reimplement with _Generic(3)
authorAlejandro Colomar <alx@kernel.org>
Wed, 15 May 2024 11:19:43 +0000 (13:19 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Tue, 4 Jun 2024 07:10:23 +0000 (09:10 +0200)
commit69f74dbf8a2341aa73dc3f2213102eae1a3e49e0
tree265543231b526bb6a29c6c5a879ddfa426adea66
parent4e2453fa9f0c1e0c18d1f118140af69d5fb82b8e
lib/cast.h: const_cast(): Reimplement with _Generic(3)

This makes it much simpler and portable.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/cast.h