sd-common: add __const__
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 Oct 2024 08:13:10 +0000 (09:13 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Nov 2024 19:48:10 +0000 (19:48 +0000)
commita5e128ca26cab912b4e404dbd6ad9cb6f60c67da
tree5acb4012c313318412977b776f817c4d5e28f113
parent963171cf4148d4dd7e63c84febe36c77d0b46a5e
sd-common: add __const__

const is stronger than pure, see
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-pure-function-attribute
and
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-const-function-attribute.

(cherry picked from commit 955c51c087f1fb6d0b7a0091db943ad05ba3095e)
src/systemd/_sd-common.h