udevadm,basic: replace nulstr_contains with STR_IN_SET (#6965)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 4 Oct 2017 17:32:12 +0000 (19:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Oct 2017 17:32:12 +0000 (19:32 +0200)
commit5991ce44dc7f6a03fd8b9dffc4ce832cb54c48ef
tree700fb6cdfc1f52e3f947fcc6b757449201244e27
parent689ca202e7cc2d2818d64fa002d63cfd30add572
udevadm,basic: replace nulstr_contains with STR_IN_SET (#6965)

STR_IN_SET is a newer approach which is easier to write and read, and which
seems to result in space savings too:

before:
4949848 build/src/shared/libsystemd-shared-234.so
 350704 build/systemctl
4967184 build/systemd
 826216 build/udevadm

after:
4949848 build/src/shared/libsystemd-shared-234.so
 350704 build/systemctl
4966888 build/systemd
 826168 build/udevadm
src/basic/mount-util.c
src/udev/udevadm-trigger.c