projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5b4bd2
)
KEYS: key_is_dead() should take a const key pointer argument
author
David Howells
<dhowells@redhat.com>
Tue, 24 Sep 2013 09:35:14 +0000
(10:35 +0100)
committer
David Howells
<dhowells@redhat.com>
Tue, 24 Sep 2013 09:35:14 +0000
(10:35 +0100)
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>
security/keys/internal.h
patch
|
blob
|
blame
|
history
diff --git
a/security/keys/internal.h
b/security/keys/internal.h
index df971feceaf2202335a1488e07adf1a97dd03939..490aef5ba34be4abefa35396239f9bd1c535ddd0 100644
(file)
--- 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);
/*
* 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) |