]> git.ipfire.org Git - thirdparty/systemd.git/commit
path-util: beef up PATH_STARTSWITH_SET() macro a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 15:50:39 +0000 (16:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 26 Nov 2018 13:08:46 +0000 (14:08 +0100)
commitd898ed65ab89e374848eb8a3de916124dd2df1fe
treef9f3a8aaa0e2a36f502adb42e0e9ab4bedc586aa
parent0cbd293e125ba1a5f23f2698da319d61a91c0dc1
path-util: beef up PATH_STARTSWITH_SET() macro a bit

Let's remove duplicate evaluation, and let's return the result of the
succesful path_startswith() call, i.e. the suffix to the matching
prefix.
src/basic/path-util.h
src/test/test-path-util.c