chiark / gitweb /
util: change return value of startswith() to non-const
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2014 14:10:59 +0000 (16:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2014 15:24:21 +0000 (17:24 +0200)
commit11adc1aef7a1a6e9ba3fda8eb34eb5fadedc0385
treedf0a121bd4f3db89e9d7bc7afd3d6276277581a5
parent3fdbc8205885f117b7dea289b44217310663e731
util: change return value of startswith() to non-const

This way we can use it on non-const strings, and don't end up with a
const'ified result.

This is similar to libc's strstr() which also takes a const string but
returns a non-const one.
src/shared/util.h