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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user