]> git.ipfire.org Git - thirdparty/systemd.git/commit
signal-util: don't introduce symbols with double underscores
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Oct 2021 11:18:50 +0000 (13:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Oct 2021 12:08:58 +0000 (14:08 +0200)
commitf8cc16fd53151a7cb98ce997d490ccf510ed1562
tree5410f9460c09ff5c4b2b252a82643c2c9a18ca43
parentb1967fb83a21aedc5882c665cbccf4b55f4282be
signal-util: don't introduce symbols with double underscores

ANSI C reserves identifiers beginning with an underscore for compiler
internal stuff. We already invade that namespace plenty and probably
should not. But even going for the doubly underscore prefixed namespace
is a bit too much. Let's just rename the offending table as
"static_signal_table[]", since it lists the static defined signals
rather than the "dynamic" RTSIGMIN/RTSIGMAX signals.
src/basic/signal-util.c