]> git.ipfire.org Git - thirdparty/systemd.git/commit - coccinelle/in_set.cocci
coccinelle: fix IN_SET/!IN_SET scripts, and apply some changes it found
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Nov 2017 12:05:24 +0000 (13:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Nov 2017 19:12:26 +0000 (20:12 +0100)
commita2d61f07463410e8ef7127b6e7c194d2bb04247a
tree530f824adf7ddd298c01fbd588e13764bd44517f
parent7b943bb7e3e2fad3481c7191edbfaeef0680b196
coccinelle: fix IN_SET/!IN_SET scripts, and apply some changes it found

IN_SET only works for constant values, hence clarify that. Moreover, we
declared a statement "s" we never made use of. Drop it.

Also, for both scripts, let's support 10 items. More causes spatch to
die with "Stack overflow" for me.
coccinelle/in_set.cocci
coccinelle/not_in_set.cocci
src/udev/udevd.c