chiark / gitweb /
service,strv: introduce strv_find_startswith() and make use of it
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2014 14:22:34 +0000 (16:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2014 15:24:21 +0000 (17:24 +0200)
commit28849dbadb7cd127f7f89e8892ec94c6a05070da
treef147f6937402f82c88b6a207a5c6492ff5d89be4
parentf49650cee2c5256dc0491432e1f12a4ae19be6c5
service,strv: introduce strv_find_startswith() and make use of it

Unlike strv_find_prefix() the new call will return a pointer to the
suffix of the item we found, instead of the whole item. This is more
closer inline with what startswith() does, and allows us to simplify a
couple of invocations.
src/core/service.c
src/shared/strv.c
src/shared/strv.h