]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/path-util.h
path-util: make path_equal() an inline wrapper around path_compare()
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Jun 2021 09:04:31 +0000 (11:04 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 Jun 2021 04:46:43 +0000 (13:46 +0900)
commit1a27c323dd21341875d62c5b13a878859d094318
treef9840e5b8e72ce79eb3dee6a25a06259b65c72c0
parent5384e84c466bac6cacf29cbdcb3b6ef1b928d683
path-util: make path_equal() an inline wrapper around path_compare()

The two are completely identical, only the return code is inverted.
let's hence make it easy for the compiler to make it the same function
call even in lowest optimization modes.
src/basic/path-util.c
src/basic/path-util.h