Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e55ca6d authored by David Howells's avatar David Howells
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
parent a5b4bd28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ extern struct key *key_get_instantiation_authkey(key_serial_t target_id);
/*
 * Determine whether a key is dead.
 */
static inline bool key_is_dead(struct key *key, time_t limit)
static inline bool key_is_dead(const struct key *key, time_t limit)
{
	return
		key->flags & ((1 << KEY_FLAG_DEAD) |