diff options
author | David Howells <dhowells@redhat.com> | 2013-09-24 05:35:14 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2013-09-24 05:35:14 -0400 |
commit | 7e55ca6dcd07b45619035df343c9614a3ab35034 (patch) | |
tree | bea3f5ae5c007d114d5acd44a1c9e4fc86b41f2b /security/keys | |
parent | a5b4bd2874d9032b42db8cc4880058576c561b06 (diff) |
KEYS: key_is_dead() should take a const key pointer argument
key_is_dead() should take a const key pointer argument as it doesn't modify
what it points to.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'security/keys')
-rw-r--r-- | security/keys/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h index df971feceaf2..490aef5ba34b 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h | |||
@@ -203,7 +203,7 @@ extern struct key *key_get_instantiation_authkey(key_serial_t target_id); | |||
203 | /* | 203 | /* |
204 | * Determine whether a key is dead. | 204 | * Determine whether a key is dead. |
205 | */ | 205 | */ |
206 | static inline bool key_is_dead(struct key *key, time_t limit) | 206 | static inline bool key_is_dead(const struct key *key, time_t limit) |
207 | { | 207 | { |
208 | return | 208 | return |
209 | key->flags & ((1 << KEY_FLAG_DEAD) | | 209 | key->flags & ((1 << KEY_FLAG_DEAD) | |