]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/c.h: handle members of const struct
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 12 Jan 2024 06:51:39 +0000 (07:51 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 12 Jan 2024 06:54:13 +0000 (07:54 +0100)
commit24fce5a36c2cb126f3fc27b34ba368f94941c039
tree830c906006ce4038cf0ebbf21cd95795afe34fa3
parent489b175c11cee48a4a2ee094075d0ff2a4da0024
include/c.h: handle members of const struct

Trying to copy into a local const struct will lead to a compiler error.
By adding a "+ 0" to the argument of __typeof__() the type of the
resulting express will loose its constness.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/c.h