cap-list: modernize capability_set_from_string() a bit
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Feb 2023 11:25:44 +0000 (12:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Feb 2023 15:13:49 +0000 (16:13 +0100)
commit3f444e94f5a7ccc8d4f16a331858b0a4e717b773
tree2bf94bbec1086016585666352121f4407c453cce
parent8142d73574b4743081e096bf15bee65e8214b656
cap-list: modernize capability_set_from_string() a bit

Make return parameter optional. And return whether there were any caps
we didn't recognize via 0/1 return value.
src/basic/cap-list.c
src/basic/cap-list.h
src/test/test-cap-list.c