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.
This commit is contained in:
Lennart Poettering
2023-02-20 16:13:49 +01:00
parent 8142d73574
commit 3f444e94f5
3 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -8,4 +8,4 @@ int capability_from_name(const char *name);
int capability_list_length(void);
int capability_set_to_string(uint64_t set, char **ret);
int capability_set_from_string(const char *s, uint64_t *set);
int capability_set_from_string(const char *s, uint64_t *ret);