Skip to content

Commit 7e55ca6

Browse files
committed
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>
1 parent a5b4bd2 commit 7e55ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/keys/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ extern struct key *key_get_instantiation_authkey(key_serial_t target_id);
203203
/*
204204
* Determine whether a key is dead.
205205
*/
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)
207207
{
208208
return
209209
key->flags & ((1 << KEY_FLAG_DEAD) |

0 commit comments

Comments
 (0)