diff options
author | David Howells <dhowells@redhat.com> | 2014-09-16 16:36:08 (GMT) |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-09-16 16:36:08 (GMT) |
commit | 0c903ab64feb0fe83eac9f67a06e2f5b9508de16 (patch) | |
tree | 809464ff50aa99c1caaf650230fea4f30ef8138c /security/keys/process_keys.c | |
parent | c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 (diff) | |
download | linux-0c903ab64feb0fe83eac9f67a06e2f5b9508de16.tar.xz |
KEYS: Make the key matching functions return bool
Make the key matching functions pointed to by key_match_data::cmp return bool
rather than int.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'security/keys/process_keys.c')
-rw-r--r-- | security/keys/process_keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index 08bd533..bd536cb 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c @@ -489,8 +489,8 @@ found: /* * See if the key we're looking at is the target key. */ -int lookup_user_key_possessed(const struct key *key, - const struct key_match_data *match_data) +bool lookup_user_key_possessed(const struct key *key, + const struct key_match_data *match_data) { return key == match_data->raw_data; } |